All HTTP status codes
HTTP 204 No Content
SuccessThe request succeeded and there is intentionally no response body. Typical for DELETE operations and for PUT/PATCH when the server returns nothing.
Defined in RFC 9110
Common causes
- Successful DELETE / save endpoints that return no payload
- Preflight-adjacent endpoints designed to be body-less
How to fix it
Nothing to fix — clients must not try to parse a body
If JSON parsing fails on an empty response, guard for 204 before calling response.json()
Related status codes
Want to explore status codes interactively? Try the free HTTP Status Code Reference — search, categories and example responses, right in your browser.