204Status code
2xxSuccess
YesCacheable by default
RFC 9110 §15.3.5Defined in
Common causes
- DELETE that succeeded
- PUT or PATCH where the client already has the new state
- Form autosave endpoints
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)