HTTP 201 Created
In short: A new resource was created.
In more detail: Typical answer to POST (or PUT) when something new results, such as a user or a post. The Location header gives the address of the new resource, and the body often returns it right away.
In Depth
When it occurs
- REST APIs:
POST /api/postscreates a post. - Upload of a file that is stored under its own address.
What you can do
- As a user there is nothing to do.
- Developers: set the
Locationheader and return the new resource in the body.
See also: HTTP Status Codes Overview, HTTP