2xx Success
204 No Content
The request succeeded and there is no body to return.
Common for DELETE, for PUT/PATCH that don’t return the updated resource, and for CORS preflight responses.
Notes
- A 204 response must not have a body. Calling
response.json()on it throws — check the status first.
Example response
HTTP/1.1 204 No Content
Date: Thu, 22 Oct 2026 08:00:00 GMT Check a URL’s status with curl -I https://example.com, which prints the status line and headers.