HTTP status code 204 — No Content
Quick answer
Status code 204 (No Content): Success with an empty body. Used for DELETE or updates that return nothing.
Used for DELETE or updates that return nothing.
204 deliberately has no message body. Do not expect JSON; check status only.
Common causes
- Successful DELETE
- A PUT/PATCH that intentionally omits the updated resource from the response
How to fix it
Do not try to `.json()` a 204 body — check `response.status === 204` first, it will throw on empty JSON parsing otherwise.
Frequently asked questions
What is status code 204?
204 No Content: Success with an empty body. Used for DELETE or updates that return nothing.
When should I expect HTTP 204?
204 deliberately has no message body. Do not expect JSON; check status only.
What usually causes HTTP 204?
Successful DELETE; A PUT/PATCH that intentionally omits the updated resource from the response.
How do I fix HTTP 204?
Do not try to `.json()` a 204 body — check `response.status === 204` first, it will throw on empty JSON parsing otherwise.
Where can I see all status codes?
Open the HTTP status codes hub on TryDevSnip for the full reference list.
Does TryDevSnip log my API traffic?
No. These pages are static reference. TryDevSnip does not proxy or inspect your HTTP calls.