Skip to content
2xx Success Cacheable by default

204 No Content

The request succeeded and deliberately has no body.

What causes it

  • A successful DELETE; a PUT that returns nothing; a form save handled by JavaScript.

How to fix it

  • A 204 must not have a body. Sending one confuses HTTP/1.1 clients about message framing.
  • If your `fetch` code throws parsing JSON, guard on `response.status === 204` before calling `.json()`.

At a glance

Class
2xx Success
Reference
RFC 9110 §15.3.5
Standardised
Yes
Retry the request?
No — fix the request

Other 2xx success codes

Back to the full HTTP status code reference