Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1111705 of 204 No Content

  • Revision slug: Web/HTTP/Status/204
  • Revision title: 204 No Content
  • Revision id: 1111705
  • Created:
  • Creator: fscholz
  • Is current revision? Yes
  • Comment fix github url

Revision Content

{{HTTPSidebar}}

The HTTP 204 No Content success status response code indicates that the request has succeed, 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

{{Compat}}

See also

Revision Source

<div>{{HTTPSidebar}}</div>

<p>The HTTP <strong><code>204 No Content</code></strong> success status response code indicates that the request has succeed, 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.</p>

<p>The common use case is to return <code>204</code> 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")}} <code>Created</code> is returned instead. If the page should be changed to the newly updated page, the {{HTTPStatus("200")}} should be used instead.</p>

<h2 id="Status">Status</h2>

<pre class="syntaxbox">
204 No Content</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Title</th>
  </tr>
  <tr>
   <td>{{RFC("7231", "204 No Content" , "6.3.5")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>

<p>{{Compat}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li><a href="/en-US/docs/Web/HTTP/Methods">HTTP request methods</a></li>
</ul>
Revert to this revision