Back to all status codes
429
Too Many Requests
The user has sent too many requests in a given amount of time (rate limiting).
Common Causes
- •Rate limit exceeded
- •API abuse
- •Too frequent requests
Fix Solutions
Implement backoff
Add exponential backoff to retry logic.
Check Retry-After header
Wait for the time specified in Retry-After header before retrying.
Code Examples
# Rate limiting
limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;
location /api {
limit_req zone=api burst=20 nodelay;
}