Section: HTTP 2xx Success Status Codes

HTTP 201 Created

text
text
curl -i -X POST https://example.com/api/users -H 'Content-Type: application/json' -d '{"name":"Ada"}'
Explanation

Common after a successful `POST` that creates a new resource.

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 HTTP 2xx Success Status Codes
HTTP 200 OK
Request succeeded
OpenIn sheettextsame section
HTTP 202 Accepted
Accepted for asynchronous processing
OpenIn sheettextsame section
HTTP 203 Non-Authoritative Information
Metadata transformed by an intermediary
OpenIn sheettextsame section
HTTP 204 No Content
Request succeeded with no response body
OpenIn sheettextsame section
HTTP 205 Reset Content
Client should reset document view
OpenIn sheettextsame section
HTTP 206 Partial Content
Partial body returned due to range request
OpenIn sheettextsame section