HTTP 201 Created indicates that the request has been fulfilled and a new resource has been created. The server SHOULD return a Location header with the URI of the newly created resource and include a representation of the resource (or a reference to it) in the response body. This status code is fundamental to RESTful API design — it distinguishes successful creation from other success operations, enabling clients to immediately navigate to or reference the new resource.
Response includes the status code, standard headers (including Content-Type), and a small diagnostic JSON body describing the request and returned status.
Simulator URL (copy in the app after load — not a normal link):
https://httpstatus.com/api/status/201
Example request:
curl -i "https://httpstatus.com/api/status/201"