Every time you hit Save and the page does not so much as flicker, a status code drafted in 1996 is quietly taking the credit. HTTP 204 No Content is the protocol's most disciplined act of restraint: it announces that the work is done, then declines to say another word about it.
The short version
- HTTP 204 No Content has meant the same thing since HTTP/1.0: the request was fulfilled and there is nothing new to display. A user agent should keep the document view that caused the request rather than navigate away or clear it.
- “No Content” is not “no state” and not “no metadata.” Under RFC 9110, response headers describe the target resource and its selected representation after the action — after a PUT, an ETag can name the newly saved version.
- A 204 ends at the end of its header section. No content, no trailers, and current HTTP forbids
Content-Length. That empty boundary is protocol meaning, not a formatting preference.
A save that never needed a curtain call
Early Web interactions bundled two events into one: something happened, and then a new document appeared to prove it. For retrieval that was fine. For a submission whose result deserved a page of its own, also fine. For the far more common pattern — change something, acknowledge it, let the user keep working — it was pure overhead.
Picture an editor saving a document. The origin server does not need to ship the document back just to demonstrate that the save occurred, and success should not yank the writer out of the working surface. The useful answer is smaller: done; here is the resource's new version identity; carry on.
HTTP 204 made that answer explicit instead of leaving it to an empty 200 and a hopeful interface. It assigned a status whose absence of response content was part of the contract — which is why 204 is more than a bandwidth trick. It separates a successful state change from a representation replacement.
1996: RFC 1945 puts continuity in writing
RFC 1945, published in May 1996, described 204 as a fulfilled request with no new information to send back. If the client was a user agent, it should not change the document view that generated the request.
The text pointed at scripts and other actions as the primary use case: input could take effect without displacing the active document. The response could still carry new metainformation in entity headers, and that information applied to the document already on screen.
Two ideas were there from the start. A missing body did not weaken the claim of completion. And the existing view was not merely what happened to survive — preserving it was intended behaviour.
HTTP/1.0 also listed 204 among responses that must not include a body. The absence was structural, not a zero-byte representation somebody forgot to fill in.
1997–1999: the message boundary gets sharpened
RFC 2068 kept the view-in-place model in 1997 and stated that a 204 response must not include a message body; it ended at the first empty line after the header fields.
RFC 2616 refined the metadata language in 1999. A server had fulfilled the request, did not need to return an entity body, and might return updated metainformation associated with the requested variant. A user agent should keep the current document view while applying that metadata to it.
The method definitions used 204 as a completed branch. An enacted DELETE with no representation describing the result could return 204. An existing resource successfully modified by PUT could return either 200 with a result representation or 204 without one.
The contrast matters: a missing response body did not push the operation back into uncertainty. The method had already crossed its completion line.
204 is not an empty 200
A zero-length 200 and a 204 can carry the same number of response-content octets. They do not make the same statement.
A typical 200 is expected to contain content, even when framing says its length is zero. A 204 says there is no additional response content because the successful result does not need any. The status gives the absence a reason and tells generic components which framing and interface assumptions apply.
That distinction stops a client from reading zero bytes as an accidentally missing representation, and stops a server from claiming 204 while quietly appending a status document.
Protocols get more reliable when absence has a type. A zero might be data. A 204 is a control result.
The ETag is the receipt
The 2014 RFC 7231 made the post-action reference clearer: metadata in a 204 response refers to the target resource and its selected representation after the requested action was applied.
Its PUT example is compact and consequential. If a successful PUT receives a 204 with an ETag, that ETag identifies the new representation of the target resource. The client can update the version marker of the document in its editor without downloading that document again.
The body is absent; the result's identity is not. Date, cache controls and other applicable fields can still carry post-action facts. A client that throws away every header because “204 means nothing” loses exactly the evidence it needs for the next conditional save.
The distinction also stops the ETag from being attached to the request payload by assumption. Response metadata names the selected representation after origin processing — if the origin transforms submitted content, the returned identity describes the resulting server state under the specification's conditions.
The view stays put, but it is allowed to learn
Keeping the document view does not mean freezing it in ignorance. The server assumes the user agent will provide its own indication of success and apply new or updated response metadata to the active representation.
So the origin controls whether the action completed and which post-action metadata is authoritative. The user agent controls how success is shown locally and whether another retrieval is needed for the application.
That split removes two unnecessary transfers. The server need not echo the working document; the client need not navigate to a confirmation page. Yet the client can still move its concurrency state forward with an ETag or other metadata.
The interface stays in place. The local model does not have to stay stale.
205 is the opposite user-interface branch
HTTP 205 Reset Content sits next to 204 in the registry and points the other way. After a successful 205, the user agent is asked to reset the document view that caused the request, preparing it for another input action.
204 does not ask for that reset. Its classic save action leaves the document available for continued editing. Treat 204 as 205 and you can erase local work, clear form state or move focus when the server asked for none of it.
Which is why “both have no content” is an inadequate classification. Content absence is shared; interface control is not. Status semantics decide what happens to the active surface after the headers end.
An implementation that maps every bodyless success onto one generic UI branch throws away the distinction the protocol went to the trouble of creating.
202 sits on the other side of the commit line
HTTP 202 Accepted looks similar — it can be terse and may not deliver the final business result — but its temporal claim is entirely different. A 202 says processing has been accepted, not completed, and might never complete.
A 204 says the request has been successfully fulfilled. Retrying it because “no content arrived” can duplicate an already enacted change. Sending 204 before asynchronous work finishes lies about the action's time boundary and deprives the client of a status-monitoring path.
The difference matters for idempotency, billing, deletion, publication and every other action whose repetition has consequences. Body length is not evidence of completion; the status is.
An empty network message can sit on either side of the commit line. 202 and 204 tell the client which side it is on.
The header section is the whole response
Current RFC 9110 states that 204 ends at the end of the header section and cannot contain content or trailers. A server must not send Content-Length in a 204 response.
That strict framing protects more than tidiness. On a persistent connection, unexpected bytes after a response whose semantics forbid content can be read differently by different recipients, or confused with the next message. Parser disagreement at a boundary turns a harmless-looking success into a connection-level hazard.
Middleware that automatically appends JSON, a newline, a tracing footer or a default Content-Length: 0 therefore needs status-aware behaviour. The response is complete when the headers end.
No-content semantics are enforced by where the next message is allowed to begin.
Heuristically cacheable is not a licence to replay
RFC 7231 described 204 as cacheable by default. RFC 9110 uses the more precise phrase “heuristically cacheable,” unless the method definition or explicit cache controls say otherwise.
That sentence is easy to overgeneralise. It does not mean every response to POST, PUT or DELETE can be stored and replayed against any later request. RFC 9111 keeps cache reuse tied to method semantics, cache keys, freshness and explicit controls.
The interesting cached object is usually the post-action response metadata, not a nonexistent body. Reusing it in the wrong request context can attach an ETag or a policy state to the wrong operation.
Origins should therefore emit deliberate cache controls, especially for state-changing methods. Intermediaries must preserve method-aware keys and never read “heuristically cacheable status” as a universal grant.
No content can still be too little
204 is appropriate only when the client does not need a response representation to continue correctly. A business operation may produce an identifier, a receipt, a recovery token, a conflict explanation or a next-step URI that the client actually needs. Hiding that behind 204 is not elegant minimalism; it is an incomplete application contract.
The server decides whether post-action metadata is enough, but that decision has to respect the application protocol agreed with the client. HTTP permits 204; it does not make every omitted result acceptable.
Likewise, the user agent can decide to fetch the target again if its local view needs canonicalised content. The status says navigation is not required by the response, not that another retrieval is forbidden.
Minimal transport works only when the missing bytes are genuinely redundant.
IANA keeps a very specific absence on file
The IANA HTTP Status Code Registry maps 204 No Content to RFC 9110 Section 15.3.5. The registration preserves the narrow combination of claims.
The action succeeded. There is no additional content in this response. Metadata describes the resource after the action. The current view need not be replaced. The message ends with its headers.
None of that means the resource is empty, missing or deleted. None of it means the client can ignore headers. None of it asks the interface to reset.
The name is short. The preserved semantics are not.
The save succeeded without taking over the screen
HTTP 204 is a protocol for restraint. The origin knows it has completed an action, but it does not insist on controlling the user's next view with a confirmation document. The user agent stays responsible for local feedback and continued work.
Restraint, though, is not ambiguity. The status fixes completion, the headers carry post-action identity, and the framing fixes the exact boundary of absence.
This thin result became useful because every layer kept its own authority. The server could save. The client could remain. The metadata could advance. The network could stop.
The page did not change because the protocol had nothing more to display — not because nothing had happened.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






