Free auditStart free
GuideError · HTTP status codes

HTTP 201 Created

HTTP 201 means the request created one or more new resources. Learn what a correct 201 response includes, how it differs from 200, and how to return it.

3 min
read
4
sources
Oct 23, 2026
updated
Scaplet Editorial Team
author
The short answer

HTTP 201 Created means the request was fulfilled and resulted in one or more new resources. The primary resource is identified by the Location header, or by the target URI if no Location is sent. Servers usually send it after a POST that creates something. It is a success, not an error.

  1. What a 201 means and who causes it
  2. 201 versus 200, 202 and 204
  3. How to return and check a 201
  4. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02Which success code to send

201 versus 200, 202 and 204

Code

200 OK

Meaning
The request succeeded
Use it for
Reads, and actions with a result to return
Code

201 Created

Meaning
A new resource now exists
Use it for
Creating a record, file or account
Code

202 Accepted

Meaning
Accepted for processing, which is not complete
Use it for
Queued or batch work
Code

204 No Content

Meaning
Succeeded, nothing to send
Use it for
Deletes and saves with no body

RFC 9110 describes 202 as intentionally noncommittal: the request might or might not eventually be acted upon. Use 201 only when the resource exists at response time. If creation is queued, use 202 and describe the status in the body.

03How it works

How to return and check a 201

Abridged MDN example of a 201 after creating a user
POST /users HTTP/1.1
Host: example.com
Content-Type: application/json

{ "firstName": "Brian", "lastName": "Smith" }

HTTP/1.1 201 Created
Content-Type: application/json
Location: http://example.com/users/123

{ "message": "New user created" }
  1. 01

    Create the resource first

    Save it before you respond. A 201 is a promise that the thing exists.

  2. 02

    Set Location

    Point it at the new resource's URL, for example /users/123.

  3. 03

    Return a useful body

    Include the created record or a link to it, as RFC 9110 suggests.

  4. 04

    Test it

    Send the POST with curl -i and confirm the status line, Location header and body.

04Explained

What it does to SEO

A 201 is rarely the response to a page crawlers request, since it follows a creating request. Google's documentation says for 201 and 202 it waits for the content for a limited time, then passes on whatever it received to the next processing step. A public URL that returns 201 on GET is unusual. Serve 200 for pages meant to be indexed. See soft 404 errors and Google's documentation on how HTTP status codes affect its crawlers. Related: 200 OK and 204 No Content.
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What does error code 201 mean?

It is not an error. It means the request succeeded and created one or more new resources.

02What is the difference between a 200 and a 201 response?

A 200 means the request succeeded. A 201 means it succeeded and created a new resource, which is identified by the Location header or the target URI.

03Does a 201 need a body?

RFC 9110 says the content typically describes and links to the created resources, so include one. The Location header is the key part.

04Should a POST return 200 or 201?

Return 201 when the POST created a resource. Return 200 when it returned the result of an action without creating one.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • iana.org
  • google.com
  1. 01RFC 9110: 201 Created (Section 15.3.2) and 202 Accepted (Section 15.3.3)rfc-editor.org · checked 2026-10-25
  2. 02MDN: 201 Createddeveloper.mozilla.org · checked 2026-10-25
  3. 03IANA HTTP Status Code Registryiana.org · checked 2026-10-25
  4. 04How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane