HTTP 204 No Content

The request worked and there is nothing to send back.

No Content

2xx SuccessStandardRFC 9110, section 15.3.5

The request worked and there is nothing to send back.

Example response
HTTP/1.1 204 No Content
ETag: "v7"
Date: Sun, 15 Nov 2026 09:30:00 GMT

What 204 means

The request worked and there’s deliberately nothing in the body. A 204 response can’t have a body at all.

When servers send it

After a successful DELETE, a PUT or PATCH that doesn’t echo the result, a CORS preflight, or a tracking ping.

Why you might see it

  • A successful request with nothing to return.

Using it as a developer

  • Don’t try to parse JSON from a 204: there isn’t any, and response.json() will throw.
  • Headers such as ETag can still tell the client about the new state.
  • If the client needs the updated object, return 200 with it instead.

If you’re visiting a website

  • Nothing. It worked, and the page stays as it is.

Related codes

  • 200 OK: The request worked and the response contains the result.
  • 205 Reset Content: The request worked, and the client should reset the form or view that sent it.
  • 201 Created: The request worked and created something new, usually found at the URL in the Location header.
  • 304 Not Modified: Your cached copy is still up to date, so use that.

Where it’s defined

204 No Content is defined in RFC 9110, section 15.3.5. It’s a 2xx code, the success class: the request worked.

Other 2xx codes

200 OK · 201 Created · 202 Accepted · 206 Partial Content

Or search them all in the HTTP status code list.

Questions people ask

What does HTTP 204 No Content mean?
The request worked and there is nothing to send back.
Why does fetch throw “Unexpected end of JSON input” on a 204?
Because the body is empty. Check response.status === 204 (or the content length) before calling response.json().
Should DELETE return 200 or 204?
Either is fine. 204 when there’s nothing to say, 200 if you return something such as the deleted object or a message. 202 if the deletion is queued.
↑↓ move↵ openesc close