what is 204 status code

11 months ago 23
Nature

The HTTP 204 No Content success status response code indicates that a request has been successfully processed by the server, but there is no content to return to the client. This status code is typically used for requests where the client wants to indicate that it has finished processing a request, such as a DELETE request. It is also used when the server has fulfilled the request but does not need to return an entity-body, and might want to return updated meta-information. For example, a PUT request would be used to save a page, and the 204 No Content response would be sent to indicate that the editor should not be replaced by some other page. A 204 response is cacheable by default, and an ETag header is included in such a response.