The request succeeded and a new resource was created as a result.
201 Created indicates that a POST or PUT request resulted in the creation of a new resource. The response should include a Location header pointing at the new resource's URL, and typically includes the resource representation in the body. 201 is more informative than 200 for creation operations because it tells API consumers "this is a new thing" rather than just "your request worked".
When servers should return it: Servers should return 201 (not 200) when a POST or PUT request creates a new addressable resource. Always include a Location header with the new URL.
curl -i -X POST https://api.example.com/users \
-H "Content-Type: application/json" \
-d '{"name":"Ada"}'
HTTP/2 201
location: /users/42
content-type: application/json
{"id":42,"name":"Ada","created_at":"2026-05-05T14:00:00Z"}
For a one-page reference of all HTTP status codes, see the HTTP cheat sheet. For testing API responses, try the API Tester tool. For inspecting responses on the command line, the curl cheat sheet covers the most common flags.