The HTTP 204 No Content
success status response code indicates that the request has succeded, but that the client doesn't need to go away from its current page . A 204 response is cacheable by default. An {{HTTPHeader("ETag")}} header is included in such a response.
The common use case is to return 204
as a result of a {{HTTPMethod("PUT")}} request, updating a resource, without changing the current content of the page displayed to the user. If the resource is created, {{HTTPStatus("201")}} Created
is returned instead. If the page should be changed to the newly updated page, the {{HTTPStatus("200")}} should be used instead.
Status
204 No Content
Specifications
Specification | Title |
---|---|
{{RFC("7231", "204 No Content" , "6.3.5")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
Browser compatibility
The compatibility table in this page is generated from structured data. If you’d like to contribute to the data, please check out https://github.com/mdn/browser-compat-data/README.md and send us a pull request.
{{Compat}}