HTTP 204 No Content

The server has fulfilled the request but there is no content to send in the response body.

2xx Success

204

No Content

Description

The 204 No Content status code indicates that the server has successfully fulfilled the request and there is no additional content to send in the response payload body. Metadata in the response header fields refer to the target resource and its selected representation after the requested action was applied. The 204 response allows a server to indicate that the action has been successfully applied to the target resource, while implying that the user agent does not need to traverse away from its current document view. The server assumes that the user agent will provide some indication of the success to its user, in accord with its own interface.

When Is It Used?

Commonly used for successful DELETE requests, PUT/PATCH updates where the client does not need the updated resource back, or save operations in single-page applications where only a confirmation of success is needed.

Example Response

HTTP/1.1 204 No Content
Cache-Control: no-cache

Look Up Any Status Code

Browse all status codes