HTTP status code 201 — Created
Quick answer
Status code 201 (Created): A new resource was created. Common after POST; Location header often points to the new URL.
Common after POST; Location header often points to the new URL.
201 signals that creation succeeded. Clients should prefer Location (when present) over guessing the new resource path.
Common causes
- A successful POST to a collection endpoint
- A PUT that created a resource that did not previously exist
How to fix it
Read the Location header (or response body id) for the new resource — do not assume the URL you POSTed to.
Frequently asked questions
What is status code 201?
201 Created: A new resource was created. Common after POST; Location header often points to the new URL.
When should I expect HTTP 201?
201 signals that creation succeeded. Clients should prefer Location (when present) over guessing the new resource path.
What usually causes HTTP 201?
A successful POST to a collection endpoint; A PUT that created a resource that did not previously exist.
How do I fix HTTP 201?
Read the Location header (or response body id) for the new resource — do not assume the URL you POSTed to.
Where can I see all status codes?
Open the HTTP status codes hub on TryDevSnip for the full reference list.
Does TryDevSnip log my API traffic?
No. These pages are static reference. TryDevSnip does not proxy or inspect your HTTP calls.