Revision 1143215 of 201 Created

  • Revision slug: Web/HTTP/Status/201
  • Revision title: 201 Created
  • Revision id: 1143215
  • Created:
  • Creator: fscholz
  • Is current revision? Yes
  • Comment

Revision Content

{{HTTPSidebar}}

The HTTP 201 Created success status response code indicates that the request has succeeded and has led to the creation of a resource. The new resource is effectively created before this response is sent back. and the new resource is returned in the body of the message, its location being either the URL of the request, or the content of the {{HTTPHeader("Location")}} header.

The common use case of this status code is as the result of a {{HTTPMethod("PUT")}} request.

Status

201 Created

Specifications

Specification Title
{{RFC("7231", "201 Created" , "6.3.2")}} Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content

Browser compatibility

{{Compat("http/status", "201")}}

See also

Revision Source

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

<p>The HTTP <strong><code>201 Created</code></strong> success status response code indicates that the request has succeeded and has led to the creation of a resource. The new resource is effectively created before this response is sent back. and the new resource is returned in the body of the message, its location being either the URL of the request, or the content of the {{HTTPHeader("Location")}} header.</p>

<p>The common use case of this status code is as the result of a {{HTTPMethod("PUT")}} request.</p>

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

<pre class="syntaxbox">
201 Created</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", "201 Created" , "6.3.2")}}</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("http/status", "201")}}</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