HTTP 204 No Content
The request succeeded but returns no content in the response body.
No Content
The request succeeded but returns no content in the response body.
What Causes HTTP 204?
- DELETE request completed successfully with no return body
- PUT or PATCH update completed with no return data
- Resource was modified but server returns no content
Code Examples
See how HTTP 204 responses look in different programming languages and tools.
curl -X DELETE https://api.example.com/users/123
# Response: 204 No Content (empty body)How to Fix HTTP 204
- Do not attempt to parse the response body — it will be empty
- Check the status code to confirm success
- Use the response headers for additional information
Related Status Codes
The request was successful. The response body contains the requested resource.
The request was successful and a new resource was created as a result.
The request was malformed or invalid. The server cannot process it.
The requested resource could not be found on the server.
The server encountered an unexpected condition that prevented it from fulfilling the request.
Test Your APIs
Frequently Asked Questions
What does HTTP 204 mean?
The request succeeded but returns no content in the response body.
What causes HTTP 204?
DELETE request completed successfully with no return body. PUT or PATCH update completed with no return data. Resource was modified but server returns no content
How to fix HTTP 204?
Do not attempt to parse the response body — it will be empty. Check the status code to confirm success. Use the response headers for additional information