Skip to content

204 No Content (HTTP Status Code 204)

Updated: at 09:12 AM

HTTP status code 204 “No Content” indicates that the server successfully processed the request but did not return any content. This status is commonly used in the following situations:

When returning a 204 status code, the server typically does not send a response body but may include valid response headers, such as ETag and Cache-Control. These header fields can be useful for updating the client’s cache entries.

Characteristics of Status Code 204:

For example, when a client sends a conditional GET request and the resource has not changed, the server may return the following response:

HTTP/1.1 204 No Content
Date: Wed, 21 Oct 2015 14:48:00 GMT
Cache-Control: no-cache

In this example, the status code 204 indicates that the server successfully processed the request but did not return any resource content. The Cache-Control response header indicates that the client should not cache this response.