Bird
Raised Fist0

Consider this HTTP response:

medium📝 Predict Output Q5 of Q15
Rest API - Rate Limiting and Throttling

Consider this HTTP response:

HTTP/1.1 503 Service Unavailable
Retry-After: Fri, 01 Jan 2030 12:00:00 GMT

What is the expected behavior if the client retries the request before the specified date?

AThe server will respond with a 200 OK regardless
BThe server will accept the request immediately
CThe client should ignore the Retry-After header and retry anytime
DThe server may still reject the request as the retry time has not been reached
Step-by-Step Solution
Solution:
  1. Step 1: Understand Retry-After with HTTP-date

    The Retry-After header with a date indicates the earliest time the client should retry.
  2. Step 2: Analyze client retry before date

    If the client retries before the specified date, the server may still be unavailable and reject the request.
  3. Final Answer:

    The server may still reject the request as the retry time has not been reached -> Option D
  4. Quick Check:

    Retry before date risks rejection [OK]
Quick Trick: Retry-After date means wait until that time [OK]
Common Mistakes:
MISTAKES
  • Assuming server accepts early retries
  • Ignoring Retry-After header
  • Expecting automatic success on retry

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes