HTTP 429 Too Many Requests
HTTP 429 Too Many Requests means the client has sent too many requests in a given time and is being rate limited. The server may include a Retry-After header…
Quick answer
HTTP 429 Too Many Requests means the client has sent too many requests in a given time and is being rate limited. The server may include a Retry-After header saying how many seconds to wait. It is common with APIs (OpenAI, GitHub, Shopify) and anti-bot protection.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 429 Too Many Requests mean?
Rate limits can be per IP, per API key, per user or per endpoint. Many APIs also return headers such as X-RateLimit-Remaining and X-RateLimit-Reset, or the standardised RateLimit headers, so clients can slow down before hitting the limit.
| Status code | 429 |
|---|---|
| Name | Too Many Requests |
| Class | 4xx Client Error |
| Defined in | RFC 6585 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | Yes, with backoff |
| Related headers | Retry-After, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset |
What causes HTTP 429?
- Exceeding an API’s requests-per-minute or tokens-per-minute quota.
- Bursty traffic from scripts, crawlers or retries without backoff.
- CDN or WAF rate-limiting rules.
How do I fix HTTP 429?
- On the server: return Retry-After and clear limit headers.
- On the client: queue requests, add exponential backoff with jitter, and cache responses.
- Ask for a higher quota if the limit is consistently too low.
What should a client do after HTTP 429?
Wait for Retry-After (or back off exponentially with jitter), then retry. Do not hammer the endpoint.
Does HTTP 429 affect SEO?
If Googlebot gets 429s, Google slows its crawl rate for the site. Sustained 429s can lead to pages being dropped. Exempt verified crawlers from aggressive limits.
Example 429 response
HTTP/1.1 429 Too Many Requests
Date: Mon, 01 Dec 2026 12:00:00 GMT
Retry-After: 60
RateLimit-Limit: 100
RateLimit-Remaining: 0
Content-Type: application/json
{"error":{"status":429,"message":"Too Many Requests"}} How to return 429 Too Many Requests in code
Express (Node.js)
res.status(429).json({ error: 'Too Many Requests' }); Next.js route handler
return Response.json({ error: 'Too Many Requests' }, { status: 429 }); FastAPI (Python)
raise HTTPException(status_code=429, detail="Too Many Requests") PHP
http_response_code(429); Nginx
location = /example {
return 429;
} Other 4xx status codes
The request contains an error or cannot be fulfilled as sent. Fix the request before retrying.
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 I'm a teapot
- 421 Misdirected Request
- 422 Unprocessable Content
- 423 Locked
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons
- 499 Client Closed Request
Frequently asked questions
How should I handle 429 from the OpenAI or another AI API?
Does 429 hurt SEO?
Is 429 a client or server error?
Related
- 503 Service Unavailable HTTP 503 Service Unavailable means the server is temporarily unable to handle the request, because it is overl.
- 403 Forbidden HTTP 403 Forbidden means the server understood the request but refuses to allow it.
- 408 Request Timeout HTTP 408 Request Timeout means the server closed the connection because the client took too long to send the c.
- 402 Payment Required HTTP 402 Payment Required is reserved for future use in the HTTP standard, but some services use it to signal .
- Open the HTTP Status Codes Reference → Free, no signup.