Section: Success status codes

201 Created

http
http
HTTP/1.1 201 Created
Location: /users/usr_123
Explanation

`201 Created` is ideal when a new resource has been created and you can identify its URL.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Success status codes
200 OK
Standard success response with a body.
OpenIn sheethttpsame section
202 Accepted
Accepted for asynchronous processing.
OpenIn sheethttpsame section
204 No Content
Success without a response body.
OpenIn sheethttpsame section
304 Not Modified
Cache validation succeeded; body omitted.
OpenIn sheethttpsame section
400 Bad Request
Malformed request syntax or invalid shape.
OpenIn sheethttp1 tag match
401 Unauthorized
Missing or invalid authentication credentials.
OpenIn sheethttp1 tag match