2xx Success
201 Created
The request succeeded and a new resource was created.
Typical response to a POST (or PUT) that creates something. Include a Location header pointing to the new resource.
Notes
- Return the created resource (or at least its ID) in the body so the client doesn’t need another request.
Example response
HTTP/1.1 201 Created
Location: /api/users/42
Content-Type: application/json
Date: Thu, 22 Oct 2026 08:00:00 GMT Check a URL’s status with curl -I https://example.com, which prints the status line and headers.