Too Many Requests
4xx Client Error
Last updated:
The client has sent too many requests in a given amount of time (rate limited).
Description
The response SHOULD include a Retry-After header indicating how long to wait. Many APIs also include X-RateLimit-* headers with quota info.
When to use
Return 429 when clients exceed your rate limits. Include Retry-After so well-behaved clients can back off.
Common pitfalls
Always send a Retry-After header (seconds or an HTTP date) — without it, clients retry immediately and make the overload worse. Don't use 429 for a single auth failure or quota exhaustion that won't recover with time (use 401/402/403). For global outages prefer 503 Service Unavailable.
Also searched as
Developers commonly search for 429 using phrases like 429 too many requests · 429 error · http 429 · 429 rate limit · rate limited · rate limit exceeded · 429 status code. All refer to the same HTTP 429 Too Many Requests response.
Specification
RFC 6585
Examples
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
{"error":"Too Many Requests"}res.status(429).json({ error: "Too Many Requests" });w.WriteHeader(http.StatusTooManyRequests)
return jsonify({"error": "Too Many Requests"}), 429