Bird
0
0

If a REST API returns:

medium📝 Predict Output Q5 of 15
Rest API - Error Handling
If a REST API returns:
HTTP/1.1 429 Too Many Requests
Retry-After: 0

What does the Retry-After value of 0 mean?
AClient should not retry at all
BClient must wait indefinitely
CClient should authenticate first
DClient should retry immediately
Step-by-Step Solution
Solution:
  1. Step 1: Interpret Retry-After header value

    Retry-After: 0 means no wait time is required before retrying.
  2. Step 2: Understand client action

    The client can retry immediately since the wait time is zero seconds.
  3. Final Answer:

    Client should retry immediately -> Option D
  4. Quick Check:

    Retry-After 0 means immediate retry [OK]
Quick Trick: Retry-After zero means retry right away [OK]
Common Mistakes:
  • Thinking zero means wait forever
  • Assuming no retry allowed
  • Confusing with authentication requirement

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes