Pick the fix
A client gets 429 with Retry-After: 30. What should it do?
Hint 1 of 1
The server already told you when.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Wait at least 30 s (plus a little jitter) before retrying, and slow its request rate
Correct. That's what the server asked for.
Retry-After is the server telling the client when capacity comes back. Waiting at least that long, with jitter so clients don't return together, gets the request through sooner than hammering.
Why not the others?
- B Retry immediately with exponential backoff starting at 100 ms. Ignores the server's explicit instruction.
- C Switch to another API key. Evades the limit; often against the terms.
- D Treat it as a permanent failure. 429 is temporary by definition.