201 Created

The HTTP status meaning a new resource was created, normally with a Location header saying where it lives.

In more detail

A create owes the client both the status and the address of the new item. The Location header gives the address of the new resource, and the body usually holds its representation.

Example

In the APIs course: The course service answers POST /tasks with 201 and Location: /tasks/5.

Related terms

Taught in

References