HTTP 429 means a server or intermediary rejected a request because a rate or usage limit was reached. To resolve HTTP 429, identify which system issued it and whether the limit applies to an IP, account, API key, endpoint or concurrent workload. Follow Retry-After when supplied, reduce shared traffic, and check exhausted quotas before retrying. RFC 6585 defines 429 and its optional retry guidance.
Start with the response and the quota identity. Then decide whether to wait, coordinate traffic or resolve an exhausted allowance. Repeated retries cannot repair every cause, and one successful request does not establish recovery.
Key Facts
- HTTP 429 indicates rate limiting but does not identify the quota scope.
- The optional retry header accepts delay-seconds or an HTTP date.
- There is no universal HTTP 429 cooldown.
- Concurrency limits and request-rate limits control different things.
- Changing IP cannot reset a quota keyed only to an account or API key.
- Retry temporary throttling after the documented wait, but stop automatic retries for exhausted credits or quotas requiring intervention.
What Does HTTP 429 Mean, and Who Sent It?
HTTP 429 Too Many Requests means the responding system is applying a rate limit. Its 4xx classification does not establish that one person or one script caused the excess: limits can group requests by credentials, cookies or resources. MDN explains 429 counting scopes.
Trace the response through the origin application, API gateway, WAF/CDN, reverse proxy and outbound proxy. Treat headers and branded error pages as clues; match timestamps and request IDs against logs to establish which layer rejected the request. See our HTTP status-code guide for related responses.
Read the Raw Response
Capture the status, headers and body before changing client behavior. The curl -i command includes response headers. See the curl option reference.
Our local test server (Python ThreadingHTTPServer on port 8429) allows 5 requests per second with a burst of 5 per X-API-Key value; requests without the header share one default bucket. Seven quick calls in a row returned 200 200 200 200 200 429 429. Run this right after a burst:
curl -i http://127.0.0.1:8429/items
The December 2, 2026, 14:29 UTC loopback capture after a burst returned:
HTTP/1.0 429 Too Many Requests
Server: BaseHTTP/0.6 Python/3.12.3
Date: Wed, 02 Dec 2026 14:29:00 GMT
Retry-After: 1
RateLimit-Policy: "burst";q=5;w=1
Content-Length: 18
Too Many Requests
Against a real API, send the same credential header your client uses, because the counting identity is implementation-specific. Keep the response alongside its request timestamp and route. See working with HTTP headers in curl for additional inspection commands.
Find Your HTTP 429 Limit With the Four-Key Check
Use the four-key check: IP, account/key, endpoint/concurrency, and edge/gateway. Compare existing failures across these dimensions, then confirm the matching policy in logs or account usage records.
Inventory scheduled jobs, application replicas and background tasks sharing the affected identity. Separate short-window throttling from an exhausted usage allowance; our API rate-limiting guide explains counting algorithms.
| Symptom | Check | Meaning | Fix |
|---|---|---|---|
| Several users fail together | Egress and limiter logs | Possible shared-IP bucket | Coordinate traffic; investigate egress |
| Same credential fails everywhere | Account quota and response body | Key, token or account limit | Reduce aggregate use; resolve quota |
| One route fails | Route policy | Endpoint limit | Pace that route |
| Bursts fail despite low average | Request timing and in-flight count | Burst or concurrency restriction | Pace starts and cap concurrency |
| Proxy-only failures | Gateway logs and request IDs | Possible proxy-side limit | Resolve gateway allocation or configuration |

What Should You Do in Your Role?
Pause avoidable traffic first, then act on the scope you control. Escalate with evidence when the quota belongs to another team or service.
| Role | Immediate action | Next check |
|---|---|---|
| Visitor | Stop repeated refreshes and pause background requests | Follow displayed retry guidance; report persistent failures |
| Developer | Pause the shared work queue | Aggregate traffic across workers, deployments and credentials |
| Server owner | Inspect the rejecting policy and logs | Check counting keys and route scope before changing thresholds |
| Scraper or API operator | Reduce aggregate traffic and defer queued work | Check route quotas, account usage and retry amplification |
Change one control at a time so that recovery has an identifiable cause. Keep credentials and session tokens out of support reports.
How Long Should You Wait After HTTP 429?
There is no fixed HTTP 429 cooldown. Follow valid retry guidance, but stop automatic retries when the response identifies a quota that needs intervention.
Interpret Retry Guidance
Retry-After: 120 means wait 120 seconds after receipt. An HTTP-date specifies a time instead. Both forms are defined by RFC 9110 section 10.2.3. Keep clocks synchronized when interpreting dates. For missing or invalid values, use bounded exponential backoff with jitter.
RateLimit and RateLimit-Policy appear in an IETF Internet-Draft. Interpret these and vendor X-RateLimit-* fields using the sender’s documented semantics.
Shared Pacing and Retry Budgets
Coordinate pauses across workers sharing the affected bucket. A production scheduler should preserve the full server-requested pause even when an individual job must defer. Set an attempt budget and an elapsed-time deadline covering queue waits, requests and retries.
Acquire application execution capacity before entering a production admission gate. Check the latest pause and spacing deadline before admitting a request to HTTPX. This controls application admission, not exact network transmission or server arrival. Already-admitted requests can continue while another task records a pause. Semaphore acquisition can wait, and HTTPX has separate connection-pool limits and connection and pool timeouts.
Python Example: Local Short-Wait Throttling
This example is restricted to the local GET endpoint, where every 429 represents temporary token-bucket throttling. It does not classify exhausted credits or account quotas. Before adapting it to an external API, inspect documented error fields and stop retries for quota conditions requiring intervention. OpenAI documents this distinction.
The client requires an already-running server at 127.0.0.1:8429, serving /item/{i} with a shared X-API-Key bucket of 5 requests/second and burst capacity 5. Reset the bucket to full capacity before a comparable run.
Save this parser as retry_after.py. The ASCII guard matters because str.isdigit() also accepts superscript digits. See Python’s digit classification.
from datetime import datetime, timezone
from email.utils import parsedate_to_datetime
def retry_after_seconds(value):
"""Return seconds, or None for absent/invalid header text."""
if not isinstance(value, str):
return None
value = value.strip()
if not value:
return None
if value.isascii() and value.isdigit():
return float(value)
try:
when = parsedate_to_datetime(value)
if when.tzinfo is None:
when = when.replace(tzinfo=timezone.utc)
return max(0.0, (when - datetime.now(timezone.utc)).total_seconds())
except (TypeError, ValueError, OverflowError):
return None
assert retry_after_seconds("\u00b2") is None
assert retry_after_seconds("3600") == 3600.0
assert retry_after_seconds("120") == 120.0
assert retry_after_seconds("soon") is None
Save the client as client.py beside retry_after.py, install HTTPX, and run python client.py:
import asyncio, random, time
import httpx
from retry_after import retry_after_seconds
class HostGate:
"""Shared per-host pacing: a request rate, a concurrency cap and a pause after 429."""
def __init__(self, rate=10.0, concurrency=4):
self.rate, self.sem = rate, asyncio.Semaphore(concurrency)
self.next_slot, self.paused_until = 0.0, 0.0
self.lock = asyncio.Lock()
async def wait_turn(self):
while True:
async with self.lock:
now = time.monotonic()
slot = max(now, self.next_slot, self.paused_until)
self.next_slot = slot + 1 / self.rate
await asyncio.sleep(slot - now)
if time.monotonic() >= self.paused_until: # a 429 may have paused us meanwhile
return
def on_429(self, wait):
now = time.monotonic()
if now >= self.paused_until: # first 429 of a burst: halve once
self.rate = max(0.5, self.rate / 2)
self.paused_until = max(self.paused_until, now + wait)
MAX_WAIT = 120 # longer Retry-After: stop and reschedule the job, do not retry early
async def fetch(client, url, gate, stats, max_attempts=5):
for attempt in range(1, max_attempts + 1):
await gate.wait_turn()
async with gate.sem:
r = await client.get(url)
stats["requests"] += 1
if r.status_code != 429:
return r.status_code
wait = retry_after_seconds(r.headers.get("Retry-After"))
if wait is None: # no hint: backoff with full jitter
wait = random.uniform(0, min(60, 2 ** attempt))
if wait > MAX_WAIT:
return "deferred"
gate.on_429(wait)
return 429 # retry budget for this URL spent
async def main(urls):
gate, stats = HostGate(rate=10, concurrency=4), {"requests": 0}
async with httpx.AsyncClient(timeout=10, headers={"X-API-Key": "demo"}) as client:
t0 = time.monotonic()
codes = await asyncio.gather(*(fetch(client, u, gate, stats) for u in urls))
print({c: codes.count(c) for c in set(codes)}, stats,
f"final rate {gate.rate}/s, {time.monotonic() - t0:.1f}s")
asyncio.run(main([f"http://127.0.0.1:8429/item/{i}" for i in range(40)]))
This compact client is a starting point, not a scheduler: it does not share a deferral longer than MAX_WAIT with other workers and has no total job deadline, so add both before production use.
Results from our loopback test on December 2, 2026 (40 URLs against the server above, bucket reset between runs):
| Client | Runs | Outcome |
|---|---|---|
| Unpaced: 40 concurrent GETs, no retries | 3 | 14 OK / 26 rejected; 14 / 26; 12 / 28 |
| Concurrency cap of 2 only, no shared pause | 1 | 13 OK / 27 rejected |
| client.py with retry_after.py as shown | 4 | 40 of 40 OK, 42 requests each, 10.0 to 10.2 seconds |
| urllib3 Retry, 12 sequential GETs | 1 | 12 of 12 OK in 2.1 seconds |
An earlier version of the gate that reserved send slots without re-checking the pause also finished 40 of 40, but needed 57 to 58 requests, because already-scheduled requests fired into the pause.
In every paced run the client started at 10 requests per second and settled at 2.5 after two 429 bursts. The environment was Ubuntu 24.04, Python 3.12.3, HTTPX 0.29.0, Requests 2.34.2, urllib3 2.8.0 and curl 8.5.0. These local short-wait results do not establish production throughput or behavior under contention and long pauses.
A Short urllib3 Configuration
This configuration is for the same local short-wait endpoint. urllib3 selects retries by method, status and retry headers; it does not classify quota errors in the response body. Do not apply it unchanged to APIs that use 429 for exhausted credits or account allowances.
import time, requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
retry = Retry(total=5, status_forcelist=[429], backoff_factor=1,
respect_retry_after_header=True, allowed_methods={"GET"})
s = requests.Session()
s.mount("http://", HTTPAdapter(max_retries=retry))
s.mount("https://", HTTPAdapter(max_retries=retry))
urllib3 2.8.0 exposes retry_after_max to cap server-requested waits; handle longer deferrals outside this configuration. See the Retry reference and our Python retry implementation guide. Before retrying writes, establish idempotency or replay protection as described in RFC 9110.
Which Platform Checks Matter?
- OpenAI: Distinguish requests-per-minute and tokens-per-minute throttling from exhausted credits or allowances. Inspect
error.codeand the message;error.typecan use the broaderinsufficient_quotavalue. See rate limits and error codes. - GitHub: Primary and secondary limits can return 403 or 429. Read the body,
x-ratelimit-remaining,x-ratelimit-resetand retry guidance. GitHub rate limits. - Discord: Check per-route and global limits and follow the JSON
retry_afterdelay in seconds. Coordinate workloads sharing a webhook. Discord rate limits. - nginx: Requests rejected by an active
limit_reqpolicy return 503 by default. Setlimit_req_status 429;in the applicablehttp,serverorlocationcontext to change the rejection status. This directive does not configure a rate limit by itself. nginx directive reference. - Cloudflare: Error 1015 identifies a website rate-limit restriction. See Cloudflare’s explanation and our 1015 troubleshooting guide.
Does Rotating Proxies Fix HTTP 429?
Usually no. If the quota is keyed to an account, API key, token or session, a new IP lands in the same bucket. Rotating IPs to get around a site’s own limit is evasion, and we do not recommend it: slow down, or ask for a higher allowance.
Proxies are relevant in three narrower cases. Your traffic may share a per-IP limit with other people’s traffic (office NAT, CI runners, cloud NAT). A permitted crawl may need regional exits while staying at the same polite total rate. Or the 429 may come from your own proxy gateway, not the destination.
Confirm the rejecting layer before changing egress. Match gateway request IDs with destination responses using our proxy-error attribution guide, and see sticky vs rotating sessions when a multi-step flow needs a stable exit.
DataImpulse residential proxies (from $1 per GB, rotating or sticky sessions) fit those routing cases. They do not raise anyone’s quota.
How Does HTTP 429 Differ From 403 and 503?
| Status | Standard meaning | Practical check |
|---|---|---|
| 429 | Rate limit reached | Identify the bucket; pause or resolve the quota |
| 403 | Request understood but refused | Check access policy; GitHub also uses it for rate limits |
| 503 | Temporary overload or maintenance | Check service health; nginx rate-limit rejection defaults to this status |
See RFC 9110 on 403 and 503. Status alone is not enough: GitHub can return 403 or 429 for rate limits, and nginx request-rate rejection defaults to 503. Check the response details and rejecting policy before choosing a retry action. For access refusals, see 403 troubleshooting.
How Do You Confirm Recovery?
Confirm sustained successful responses over a window relevant to the limiter. Record application admission timestamps separately from server-observed request timestamps, alongside status codes, attempts and elapsed time.
Check that shared pauses survive individual job deferral and that queued requests respect spacing under contention. Count deferred and exhausted jobs separately from successful ones. Resume work gradually while watching aggregate traffic. If failures persist, return to the four-key check with request IDs and policy evidence.
Frequently Asked Questions
How long does HTTP 429 last?
The status alone gives no duration. Follow valid Retry-After guidance or the service’s documented reset condition; an exhausted allowance may require intervention.
How do I fix 429 as a website visitor?
Pause repeated refreshes and background requests to that site. If ordinary use still fails after the stated wait, contact the website with the timestamp and error details.
Should I clear cookies to fix HTTP 429?
First identify what the limiter counts. Deleting cookies does not repair an exhausted account allowance or a shared-IP limit.
What if Retry-After is missing?
Check the response body and quota documentation before retrying. For temporary throttling, use bounded backoff with jitter and stop when the attempt or elapsed-time budget is exhausted.
Why do I still get 429 with only two concurrent requests?
Two fast requests can finish repeatedly within a short interval. The local concurrency-only run rejected 27 of 40 requests, showing why request starts also need pacing.
Can changing IP fix an API-key quota?
Changing IP does not alter a bucket keyed only to the API key. Coordinate all workloads using that identity and resolve its quota condition.
Match Proxy Routing to the Diagnosed Limit
If your permitted workload needs different egress or regional routing, consider DataImpulse after identifying the quota scope. Keep aggregate traffic within the destination’s allowance and retain shared pacing, pauses and retry budgets.
Last updated: December 2, 2026.
