204 No Content

HTTP 204 No Content is a 2xx success status. The request succeeded and there is intentionally no body to return.

204Status code
2xxSuccess
YesCacheable by default
RFC 9110 §15.3.5Defined in

Common causes

What to do

Do not send a body with 204; some clients hang waiting for it.

Example response

HTTP/1.1 204 No Content
Date: Thu, 26 Nov 2026 10:00:00 GMT

Returning 204 in code

Express   res.status(204).end();
Flask     return '', 204
PHP       http_response_code(204);
Go        w.WriteHeader(204)

Other 2xx codes

Frequently asked questions

What does HTTP 204 mean?
The request succeeded and there is intentionally no body to return.
Is 204 an error?
No. 2xx codes are success responses, not errors.