Glossary
HTTP 429 Too Many Requests
The HTTP status code a server returns when a client has sent more requests than its rate limit allows in a given period.
HTTP 429 Too Many Requests is the status code a server returns when a client has sent more requests than it is allowed in a given period. It is a rate limit response: the request itself may be perfectly valid, but the server is declining it for now, and it often says how long to wait in a Retry-After header. The fix is almost always on the client side: slow down, wait before retrying, spread requests out, or need fewer of them. An occasional 429 is normal for any busy integration. A steady stream of them means the request pattern needs to change, or the plan's limit is too low for the workload.
What the 429 status code means
The 429 status code was defined in RFC 6585 in 2012, for servers that want to tell a client it is over a limit without implying anything is broken. It sits in the 4xx family, which signals a problem with the client’s behaviour, but it differs from codes such as 400 or 404 in one important way: it is temporary. The same request, sent later, is expected to succeed.
A 429 response can carry useful detail. The Retry-After header gives a wait in seconds or an HTTP date after which the client may try again. Many APIs also return headers such as X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, which show the budget, what is left of it and when it refills. Those names are a widespread convention rather than a formal standard, so check each API’s documentation for what it sends. The response body often explains which limit was hit, which matters when an API applies several at once.
Common causes of 429 errors
Cause | What it looks like | Fix |
|---|---|---|
Burst of requests | Many calls in a few seconds after a deploy, a batch import or a page load | Queue the work and send it at a steady rate |
Tight polling loop | Status checks every second for many jobs | Back off, poll a list endpoint, or use webhooks |
Retry storm | Failed calls retried immediately by many clients at once | Exponential backoff with jitter |
Shared budget | Several services or environments drawing on one account’s limit | Separate budgets, or one shared client-side limiter |
Concurrency limit | Too many requests in flight at the same moment | Cap parallel requests |
Token limits on model APIs | 429 on model calls despite a modest request count | Send fewer tokens per request, or spread the load |
Abuse protection | 429 from a CDN or firewall in front of the API | Lower the rate and check the client’s IP and user agent |
The table shows why one fix rarely covers every case. Backoff helps with bursts and retry storms but does nothing for a polling design that needs 10,000 calls an hour, and a concurrency cap does not help if the real constraint is tokens per minute.
How to fix HTTP 429 as a client
Start by reading the response. If it includes Retry-After, wait at least that long before trying again; the server knows when capacity returns. If it does not, use exponential backoff with jitter: wait a second or two, double the wait after each further 429, cap it, and randomise each delay so that many clients do not retry in step. Set a maximum number of attempts, and make sure the request is safe to repeat, which is the job of retry logic and, for writes, of an idempotent design.
Then reduce how many requests you need. Batch operations where the API supports it. Cache responses that do not change often. Replace frequent polling with a webhook where one is offered, or poll a list endpoint once instead of each item separately; our webhooks vs polling entry compares the two. Every call you avoid is one that cannot be rate limited.
Finally, throttle on your own side. A client-side limiter, usually a token bucket set a little below the provider’s limit, smooths bursts before they reach the API. Background work belongs on a job queue with a controlled rate, so that a nightly import cannot starve interactive traffic. If several services share one account, give them one shared limiter or separate budgets, because the provider counts them together. Check which limit applies, too: per API key, per account, per IP address or per endpoint all behave differently, and adding keys does not help if the limit is per account.
How servers decide when to send 429
Servers track usage with rate limiting algorithms. A fixed window counts requests per calendar minute or hour, which is simple but allows bursts at the boundary. A sliding window smooths that out. A token bucket refills at a steady rate and allows short bursts up to the bucket’s size, which is why many APIs tolerate a quick flurry of calls and then start returning 429. In a multi-tenant service, limits are usually applied per customer so that one heavy user cannot slow everyone else down, which is the noisy neighbor problem that multi-tenancy designs have to manage.
It helps to know the neighbouring codes. A 503 Service Unavailable means the server as a whole is overloaded or down, whatever the client is doing. A 429 means this client is over its share. A 403 Forbidden is a refusal that waiting will not fix, and some APIs use it for exhausted quotas or plan limits, where the answer is a plan change rather than a retry.
HTTP 429 in AI and LLM applications
Model providers usually limit both requests per minute and tokens per minute, so a client can hit 429 while sending few requests if each one carries a large prompt. The size of each request’s context window usage, measured in input and output tokens, counts against the budget. That makes context size a rate limit concern as well as a cost one: trimming each request to the context it needs lowers the bill and the number of 429s together.
Agents make limits easier to hit. An agent loop may call tools in parallel, and a multi-agent system with several subagents can reach a limit that no single agent would. Give every agent in a system one shared limiter rather than letting each manage its own. An LLM gateway often centralises this, adding queueing and model routing to a second provider when the first returns 429. Work that does not need an immediate answer, such as overnight summarisation, is better sent through batch inference, which providers typically limit separately.
Streaming leaves the arithmetic unchanged. A call that uses streaming responses still counts as one request and still spends its full token budget, so a chat interface that streams answers can hit a tokens-per-minute limit as easily as one that waits for the whole reply. Long-running jobs have a related problem: a limit hit at the start of a batch is a nuisance, but one hit halfway through a multi-step agent run can leave work in an awkward state. Pairing backoff with checkpointing, so that a run can pause and resume where it stopped, turns a 429 into a short delay instead of a lost run.
Worked example: a nightly import
A research tool imports 6,000 documents into its knowledge base each night through an extraction API that allows 5,000 requests per hour. The first version starts 50 parallel workers, each submitting a document and then checking its status every two seconds. With around three status checks per document, the import needs about 24,000 requests. It hits the hourly limit within minutes, the workers retry immediately, and most of the night is spent receiving 429s.
The second version changes the design before touching the interval. Results arrive by webhook, which removes the status checks and cuts the import to about 6,000 requests. A shared limiter sends submissions at 4,000 per hour, leaving a fifth of the budget for daytime users who start work early. Any 429 that still occurs triggers backoff with jitter. The import finishes in about an hour and a half, with no failed documents and no impact on interactive traffic.
HTTP 429 and Exabase
Exabase applies rate limits of 1,000 requests per hour on the Free plan and 5,000 requests per hour on Scale. Limits are per developer and shared across all of a developer’s API keys, so creating more keys does not add capacity, and exceeding the limit returns HTTP 429. The rate limiting guide has the details, and pricing covers plans, with higher limits available on Enterprise. A different error covers plan limits: the API returns 403 with exceeds_storage_limit or exceeds_credit_limit, which retrying will not fix.
Every response carries an x-trace-id header; log it with each 429 so you can see which calls were limited. The TypeScript SDK throws a ResponseError you can catch, and middleware passed to the client is a convenient place for one backoff policy across every call.
Several Exabase features reduce request counts directly. Extract can deliver results by webhook instead of polling, as the extraction webhooks guide describes, and the list extraction jobs endpoint can be filtered by state, so one call checks many jobs. Deep Search supports multi-query search, which fans out several queries in a single call. A Memory search returns everything relevant for a task in one call. Workers run scheduled maintenance on Exabase infrastructure, so that work does not pass through your own request loop.
Exabase can also help with 429s from your model provider. Replacing full conversation history and broad top-K retrieval with structured memories and sub-document passages cut input tokens by about 81 per cent in an illustrative request, which lowers tokens-per-minute pressure as well as cost. The reduce token costs solution explains the approach, and the token cost calculator estimates it for your numbers.
Frequently asked questions
What does HTTP 429 Too Many Requests mean?
HTTP 429 means the client has sent more requests than the server allows in a period, so the server is declining requests for now. Waiting and sending requests more slowly resolves it.
How do I fix a 429 error?
Wait for the time in the Retry-After header, or back off exponentially with jitter, then reduce your request rate. Batching, caching, webhooks and a client-side limiter prevent repeat errors.
How long should I wait after a 429?
Wait at least as long as the Retry-After header says. Without one, start at one or two seconds and double the wait after each further 429, with a cap and some randomness.
Is a 429 error caused by the client or the server?
A 429 is triggered by the client’s request rate exceeding the server’s limit. If your traffic is reasonable and the limit is too low for the workload, ask the provider about a higher plan.
What is the difference between 429 and 503?
A 429 means this client is over its rate limit. A 503 means the server is unavailable or overloaded for everyone, whatever any one client is doing.
Why do I get 429 from an LLM API when I send few requests?
Model providers usually limit tokens per minute as well as requests. Large prompts can use up the token budget with only a handful of calls.
What are Exabase’s rate limits?
Exabase allows 1,000 requests per hour on Free and 5,000 per hour on Scale, per developer and shared across API keys. Going over returns HTTP 429.
Related pages: Rate limiting, Retry logic, Exponential backoff, Polling, Webhooks vs polling, Noisy neighbor, Reduce token costs solution, Your LLM bill is a retrieval problem, Best AI agent infrastructure