What is the purpose of the 'Retry-After' header in a 429 response from the R2 API?

Question

Grade: Education Subject: Support
What is the purpose of the 'Retry-After' header in a 429 response from the R2 API?
Asked by:
82 Viewed 82 Answers

Answer (82)

Best Answer
(266)
The 'Retry-After' header in a 429 (Too Many Requests) response indicates the number of seconds the client should wait before making another request. This helps prevent further throttling by allowing the server to recover and the client to avoid overwhelming the API.