HTTP 201 Created

Success

2xx Response — Created

What Does HTTP 201 Mean?

HTTP 201 Created indicates that the request has been fulfilled and has resulted in the creation of a new resource. It is the standard response for successful POST requests that create resources, such as creating a new user account, uploading a file, or adding a database record.

The response should include a Location header with the URI of the newly created resource. The response body typically contains a representation of the created resource, allowing the client to access it without an additional request.

HTTP 201 is preferred over 200 for creation operations because it explicitly communicates that a new resource was created, not just that the request was processed. REST APIs should use 201 for POST endpoints that create resources.

Common Causes of 201 Created

A new resource was successfully created on the server, typically from a POST request. Examples include creating a new user account, uploading a file, or adding a record to a database.

The server returns 201 with a Location header pointing to the newly created resource.

How to Fix 201 Created

HTTP 201 is a success response. If your API should return 201 but returns 200 instead, update your server code to explicitly set the 201 status code and include a Location header pointing to the new resource.

Ensure your API framework doesn't override the status code with a default 200.

Related Status Codes

Frequently Asked Questions

What does HTTP 201 mean?

HTTP 201 Created is a success response. HTTP 201 Created indicates that the request has been fulfilled and has resulted in the creation of a new resource. It is the standard response for successful POST requests that create resources, such

Is HTTP 201 an error?

No, HTTP 201 is a success response. Success responses (suc) indicate the request was successfully processed.

How do I fix HTTP 201?

HTTP 201 is a success response. If your API should return 201 but returns 200 instead, update your server code to explicitly set the 201 status code and include a Location header pointing to the new resource.

What causes HTTP 201 Created?

A new resource was successfully created on the server, typically from a POST request. Examples include creating a new user account, uploading a file, or adding a record to a database.

Is HTTP 201 permanent or temporary?

HTTP 201 is situational — it depends on the underlying cause. Fix the root cause to resolve it.

🔍 Check Your IP Address

While you're here, find out your public IP address, location, and ISP details instantly.

Check My IP →