← all status codes

HTTP 204 No Content

What a 204 No Content response means, why it happens, and the fastest ways to fix it.

204
No Content
2xx success
Class

The request succeeded but there is deliberately no response body — typical for DELETE, PUT updates, and preflight-adjacent endpoints.

  • Successful DELETE or update where the server has nothing to return.
  • Don't try to JSON.parse an empty 204 body — guard for it in clients.

Notes

HTTP status codes are defined in RFC 9110 (which replaced RFC 7231). The first digit is the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error, 5xx server error.

Same class: 200 · 201 · 206

All codes: HTTP status code reference

Frequently asked questions

What does HTTP 204 mean?

HTTP 204 No Content: The request succeeded but there is deliberately no response body — typical for DELETE, PUT updates, and preflight-adjacent endpoints.

How do I fix a 204 error?

Don't try to JSON.parse an empty 204 body — guard for it in clients.

Is a 204 my fault or the server's?

204 is not an error — it belongs to the 2xx success class.

Found this useful? 113 free, browser-only tools by Yuvrajsinh Jadav — an engineer who ships production AI systems. No account, nothing sent anywhere.