Back to Blog
Tutorials
2026-07-15
10 min read

Debugging 429 Responses: Rate Limits, Retry-After, and Backoff

Find out why an API returns Too Many Requests and build a client that recovers without getting banned.

By API Timing Editorial Team

A 429 response means the server has decided that a client is asking for too much. It is different from a 500-series failure: the server is healthy and deliberately refusing work. Treating it like a generic error usually makes the situation worse.

Common rate-limiting models

Fixed window counters reset at calendar boundaries, such as every minute. They are simple but allow bursts at the boundary. Sliding window logs are more accurate but need more state. Token buckets allow a burst up to a capacity and then refill at a steady rate. Leaky buckets smooth traffic to a constant output.

Many APIs apply several limits at once: per API key, per IP address, per endpoint, and sometimes per organisation. A client that is under the global limit can still hit a narrow per-endpoint limit.

Read the response headers

Useful APIs describe the limit in headers. RateLimit-Limit states the allowance, RateLimit-Remaining shows what is left, and RateLimit-Reset says when the window resets. Retry-After gives the minimum wait before another attempt and may be seconds or an HTTP date.

Our HTTP headers reference explains the header formats. When a header is missing, start conservatively with exponential backoff and jitter rather than guessing a short delay.

Diagnose which identity is being limited

Collect the API key, account, region, endpoint, and client version for failing requests. If only one key is affected, the problem is local to that integration. If every client in a region hits 429, an intermediary or shared egress IP may be responsible.

Check for accidental amplification: a page that fires the same request from several components, a retry loop, a background job that duplicates work after a deploy, or a cache misconfiguration that turns one user action into dozens of calls.

Client recovery pattern

  1. Stop sending new requests to the limited endpoint immediately.
  2. Read Retry-After and wait at least that long.
  3. If it is absent, use exponential backoff with jitter.
  4. Cap the number of attempts and surface a clear failure to the user.
  5. Reduce concurrency rather than only slowing the loop.

The last point matters. A client with ten parallel workers will still produce bursts if each worker backs off independently without a shared budget. Coordinate retries across workers.

Server-side considerations

If you operate the API, include clear headers and a short, actionable error body. Explain which limit was hit and when it resets. Distinguish throttling from permission errors so clients do not retry a call that will never succeed.

Avoid returning 429 for slow responses. Slowness is a latency problem, not a rate problem. Clients that misread a timeout as throttling may back off for the wrong reason.

Test the behavior deliberately

Use a staging endpoint with a tiny limit and verify that your client honours Retry-After, applies jitter, and stops after the retry cap. Watch for logs that show repeated immediate attempts; they reveal a broken policy quickly.

You can use the API checker to inspect the status code and headers returned by a limited endpoint, then the bulk tester to compare behavior across several keys or routes.

Summary

A 429 is feedback, not a crash. Read the headers, identify the identity being limited, reduce concurrency, and back off with jitter. A client that respects throttling recovers faster and is less likely to be blocked entirely.

429
rate limiting
retry-after
api errors

Related Tools