The request succeeded and there is intentionally no response body.
204 No Content is a successful response with an empty body. It is most commonly used for DELETE requests (the resource is gone, there is nothing to return), PUT requests that update a resource without returning a representation, and POST requests that trigger an action without producing a result. The response must not include a body, and most clients will skip body-parsing entirely on 204.
When servers should return it: Return 204 when the request succeeded and there is genuinely no body to send. Do not return 204 if the body is just empty by accident; use 200 with an empty JSON object in that case to avoid client confusion.
curl -i -X DELETE https://api.example.com/users/42
HTTP/2 204
date: Tue, 05 May 2026 14:00:00 GMT
For a one-page reference of all HTTP status codes, see the HTTP cheat sheet. For testing API responses, try the API Tester tool. For inspecting responses on the command line, the curl cheat sheet covers the most common flags.