Bird
Raised Fist0

Given this HTTP response:

medium📝 Predict Output Q4 of Q15
Rest API - Error Handling
Given this HTTP response:
HTTP/1.1 429 Too Many Requests
Retry-After: 60

What should the client do next?
AWait 60 seconds before retrying
BImmediately retry the request
CIgnore the Retry-After header and retry later
DSend authentication credentials
Step-by-Step Solution
Solution:
  1. Step 1: Understand the meaning of 429 status and Retry-After header

    429 means too many requests; Retry-After tells how long to wait before retrying.
  2. Step 2: Determine correct client behavior

    The client should wait the specified 60 seconds before sending another request to avoid further errors.
  3. Final Answer:

    Wait 60 seconds before retrying -> Option A
  4. Quick Check:

    Client waits Retry-After seconds before retry [OK]
Quick Trick: Respect Retry-After time before retrying requests [OK]
Common Mistakes:
MISTAKES
  • Retrying immediately ignoring Retry-After
  • Ignoring Retry-After header completely
  • Assuming authentication fixes rate limit

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes