Summary

  • HTTP 429 is the web's way of saying a request was fine and still arrived after its share of the budget was gone—a verdict about a counter, not about the message.
  • RFC 6585, published in April 2012, told servers to explain themselves and allowed Retry-After, but a delay is a hint, never a reservation.
  • The standard made the refusal legible and left the hard part—who is counted, over what scope, at whose cost—with whoever owns the capacity.

The fifty-first request was flawless

Picture an API with one plain rule: fifty requests an hour, per signed-in account. The first fifty arrive well-formed, credentialed, sensible. The fifty-first is a byte-for-byte twin of the one that succeeded a second earlier. Same token, same target, same intent. Nothing about the message changed. Something behind the message did: a counter rolled over.

For years the web had no clean word for that moment. A service could spit out a generic client error, or dress its own overload up as a server failure, and neither told the client what to do next. Fix the request? Swap the credentials? Wait? Give up? In April 2012, RFC 6585 handed the problem three digits of its own: 429 Too Many Requests.

The precision was deliberate and deliberately narrow. The RFC says the user sent too many requests in a given window, that the response should explain the condition, and that it may carry Retry-After. Then comes the honest part, the sentence that gives the whole story away: the specification does not define how the origin identifies the user, or how it counts requests.

HTTP standardized the verdict. It left the ledger to whoever was holding the pen.

“User” is a slot in an accounting system

In ordinary speech, a user is a person. In a rate limiter, a user is a slot in an accounting system, and the operator decides who gets shoved into it. The counted subject might be an authenticated account, an API key, a session cookie, a tenant, a source address, or some combination chosen by whoever wrote the config. RFC 6585 offers credentials and a stateful cookie as examples. It does not certify that either one points at a human being.

That distinction bites hardest at the edge of the network. Thousands of subscribers can surface through a single carrier-grade NAT address. An office can funnel all its staff traffic through one egress. A privacy relay can deliberately sever a person's identity from the address the service sees. If the cheapest early limiter counts only the address, strangers inherit one another's traffic history. The resulting 429 is a perfectly valid protocol response to a locally computed counter. It is not proof that each rejected person blew a personal allowance.

Authentication draws a different boundary, not a perfect one. One account can drive many devices. One credential can be shared, resold or stolen. A key can track a customer contract far more reliably than it tracks a process. The operator has to pick the identity evidence that matches the capacity being handed out—and disclose enough of that choice for a rejected client to recover.

Underneath sits a wider rule of Internet authority: a signal should carry no more power than its evidence supports. An IP address can justify an address-scoped counter. It cannot, on its own, authorize a judgment about a person.

The scope of the counter is part of the decision

RFC 6585 permits counting per resource, across an entire server, or among a set of servers. Three different systems, one identical set of digits.

A per-resource counter can guard an expensive search endpoint without freezing account settings. A server-wide counter is easier to explain and lets a cheap health check burn the same unit as a costly report. A tenant-wide counter can mirror a commercial allocation, provided every request is mapped to the right tenant. A fleet-wide counter can enforce one allowance across regions—if it can decide how distributed increments converge and what happens when the shared state store goes dark.

Even “one request” refuses to define itself. Is the unit an arrival, an authenticated request, an admitted operation or a completed response? Does a redirect spend another unit? Does a cancelled HTTP/2 stream count? What about a proxy retry the application never asked for? The wire status cannot answer, because the answers live in the operating system behind the origin.

A sloppy counter can deny honest work or wave excess load through, and every 429 it emits will still be syntactically correct. Protocol conformance is not an audit of the accounting policy.

A clock can advise without granting permission

RFC 6585 lets a 429 response carry Retry-After. Current HTTP semantics allow that field to hold either an HTTP date or a non-negative number of delay seconds. The difference is practical: an absolute date demands a shared time reference, while delay seconds start ticking on receipt. Neither form books a seat.

The client is being asked to wait before trying again. It has not bought first place in a future queue. At the suggested boundary, other traffic may have eaten the capacity, the policy may have changed, the credentials may have expired, the resource may have moved. A client that releases an entire backlog at the same second manufactures a fresh surge precisely by obeying the visible clock too literally.

Good recovery therefore fuses the server's hint with local restraint: bounded retries, jittered wake-ups, an expiry for work that is no longer worth doing, and method-aware handling of side effects. A POST does not become safe to repeat because a timer went off. Retry-After describes time. It does not settle the final outcome of an operation whose transport failed in the dark.

429 is not a smaller 503

Both 429 and 503 Service Unavailable can sit beside Retry-After, but they place the refusal on different surfaces. RFC 9110 defines 503 as a temporary inability to handle the request, caused by overload or scheduled maintenance—the service describing its own present incapacity. A 429 attributes the operative limit to too many requests from the subject the server's rate policy selected.

The split lets one account or one resource be throttled while everything else keeps working. It also imposes a duty of honesty. A service-wide capacity failure should not be narrated as one client's misconduct just because a 4xx code shifts the blame more conveniently. And one exhausted tenant budget need not announce to the world that the entire service is down.

Reality often contains both. A platform can run per-account quotas and global overload protection at once. The useful status is the one that explains the branch actually taken. The code should expose the control surface, not decorate it.

Refusal has a cost

The most important limit in RFC 6585 hides in its security considerations. Under attack, answering every request with 429 burns resources. So the standard does not demand the response in every case; dropping connections or taking other measures may serve better.

Producing a refusal is real work: parse the message, finish the cryptography, look up the credentials, consult a distributed counter, render an explanation, encrypt the bytes. A defensive system that performs all of it before saying no can lose the very resource it meant to protect. An edge can reject earlier—but only if it holds enough trustworthy information to apply the intended scope. Earlier action on weaker identity cuts computing cost and raises collateral denial.

This is not an interoperability failure. It is a statement about proportional authority. Explanation is a luxury good, valuable when the system can afford it. Survival can demand silence when the explanation itself becomes the attack surface.

A refusal that must not become reusable content

RFC 6585 forbids a cache from storing a 429. The rule follows from what the verdict is. A rate-limit result is welded to a moment, a subject, a scope and a live counter. Replay it later and you can extend a window that already closed, or hand one subject's refusal to a different request context.

An intermediary may enforce a rate policy it owns and mint a fresh refusal. It may not treat an old 429 as reusable representation content. The prohibition keeps a contingent accounting decision attached to the system that can still see the counter.

What the three digits cannot prove

A 429 does not authenticate the user. It does not prove malice, abuse, or even a fair allocation. It does not reveal whether the counter is exact, eventually consistent or flat on its back. It does not promise that waiting will work. It does not oblige every overloaded server to explain itself.

What it does is narrower and genuinely useful. It lets a server separate a rate-policy refusal from malformed content and from general service failure. It lets a client understand that hammering the same button is unlikely to help. And when the operator supplies an actionable explanation and a credible delay, automated recovery stops being a panic and becomes a routine.

The history of 429 is not the story of HTTP inventing quotas. It is the story of HTTP teaching a private capacity decision to speak in a public voice—and then refusing to let that voice pass itself off as law.

Sources