EMZETT.
Login

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/posts creates a post.
  • Upload of a file that is stored under its own address.

What you can do

  1. As a user there is nothing to do.
  2. Developers: set the Location header and return the new resource in the body.

See also: HTTP Status Codes Overview, HTTP