Back to Status Codes
Successful (2xx)

HTTP 204 No Content

The request succeeded but returns no content in the response body.

204

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

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

http 204no content errorhttp status codesapi error handlingrest api successful