Back to all status codesRead more on MDN
204
No Content
Success
RFC 7231
The server has successfully fulfilled the request and there is no additional content to send.
Detailed Information
The 204 status code indicates that the server has successfully fulfilled the request and that there is no additional content to send in the response body.
Common Examples
- •API responses with no data
- •Successful form submissions
- •Resource updates without data
Common Uses
- •API responses with no data
- •Successful form submissions
- •Resource updates without data
Best Practices
- •Use when no content is returned
- •Consider using 200 OK with empty body for more clarity
- •Ensure proper caching headers are set