Networking429too many requestsretry-afterthrottled

HTTP 429 Too Many Requests

Definition

429 Too Many Requests signals that the client sent too many requests in a given time; the optional Retry-After header gives a delay in seconds or a date after which it may retry.

In practice

A rate limiter answers 429 early and cheaply, before the request reaches expensive work, so the server keeps capacity for clients within their limits. Headers such as RateLimit-Limit and RateLimit-Remaining (or vendor X-RateLimit-* variants) let well-behaved clients slow down before they hit the limit.

A 429 is a request to wait, not an invitation to retry immediately; instant retries only add load and keep the client throttled. Clients should honour Retry-After, back off with jitter and cap attempts. Use 503 instead when the whole service is overloaded rather than one client being over its quota.

Example

A client over its 100 requests per minute receives 429 with Retry-After: 12, waits 12 seconds plus a little random jitter and resumes.