When to Retry
Implement retry logic for the following situations:- 429 Too Many Requests
- 5xx Server Errors (e.g., 500, 503)
Use exponential backoff with jitter to space retries safely and avoid system overload.
Learn more about how rate limits work on our Rate Limiting page.
Retry Headers
For 429 errors, respect theRetry-After
header value:
1
Detect 429 response
Check if the HTTP status code equals 429.
2
Wait before retrying
Use the value from the
Retry-After
header to delay your retry.3
Retry the request
Reattempt the same request after the delay.
Avoid tight retry loops — they may cause cascading failures or get your integration rate-limited further.