← Quiz: Design a Rate Limiter: all 15 questions
Quiz: Design a Rate Limiter · Question 10 of 15
Which response should a rate-limited request get?
Which response should a rate-limited request get?
- A.200 with an empty body
- B.404 Not Found
- C.429 Too Many Requests with a Retry-After header
- D.500 Internal Server Error
Answer & explanation
Correct answer: 429 Too Many Requests with a Retry-After header
429 tells the client it is being limited, and Retry-After says when to come back.
Can you get the rest right without peeking?
Take the timed Quiz: Design a Rate Limiter quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →