201 Created

Estimated reading: 1 minute 979 views

This HTTP response code indicates a successful request that created a resource on the server.

This response follows the generating the resource. The body of the message should include details about the new content, such as url or the Location header content.

This response usually is returned when the user-client has made a POST request.

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 Location header.

The common use case of this status code is as the result of a POST request.


201 Created


Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
# status.201