# 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.

Canonical: https://scaplet.com/errors/http/201

Guide Error · HTTP status codes

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

201 2xx · Successful

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](#what-a-201-means-and-who-causes-it)
2. [201 versus 200, 202 and 204](#201-versus-200-202-and-204)
3. [How to return and check a 201](#how-to-return-and-check-a-201)
4. [What it does to SEO](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F201%20(%22HTTP%20201%20Created%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F201%20(%22HTTP%20201%20Created%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F201%20(%22HTTP%20201%20Created%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F201%20(%22HTTP%20201%20Created%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_What a correct 201 contains

## What a 201 means and who causes it

RFC 9110 says the 201 (Created) [status code](/glossary/http-status-codes) "indicates that the request has been fulfilled and has resulted in one or more new resources being created". The server sends it, and the client sent a request that worked. "Error 201" is a misnomer, because 201 is a success code.

Part

### Location header

Rule

Identifies the primary created resource; if absent, the target URI is used

Source

RFC 9110

Part

### Body

Rule

Typically describes and links to the created resource(s)

Source

RFC 9110

Part

### Validators

Rule

Any [ETag](/glossary/etag) or Last-Modified in the response describe the new representation

Source

RFC 9110

Part

### Timing

Rule

The resource exists before the response is sent

Source

MDN

MDN says it is commonly sent as the result of a POST request, and that the new resource must be created before the response is returned. The new items can be returned in the body, but must be locatable by the URL of the initiating request or by the URL in the Location header.

_02_Which 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](/glossary/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.

_03_How 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" }
```

**Make it findable**MDN says the new resource must be locatable by the URL of the initiating request or by the URL in the Location header. Without a Location header, RFC 9110 uses the target URI.

1. 01

### Create the resource first

Save it before you respond. A 201 is a promise that the [thing](/glossary/entity) 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.

_04_Explained

## 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](/seo-issues/soft-404-errors) and Google's documentation on how HTTP status codes affect its crawlers. Related: [200 OK](/errors/http/200) and [204 No Content](/errors/http/204).

Questions

## Asked a lot.

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

_01_ What does error code 201 mean?

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

_02_ What 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.

_03_ Does 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.

_04_ Should 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. 01 [RFC 9110: 201 Created (Section 15.3.2) and 202 Accepted (Section 15.3.3)](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [MDN: 201 Created](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/201) developer.mozilla.org · checked 2026-10-25
3. 03 [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) iana.org · checked 2026-10-25
4. 04 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn HTTP 200 OK HTTP status codes](/errors/http/200) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next HTTP 204 No Content HTTP status codes](/errors/http/204) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[101 Switching Protocols](/errors/http/101)

More in HTTP status codes
[451 Unavailable For Legal Reasons](/errors/http/451) [502 Bad Gateway](/errors/http/502) [503 Service Unavailable](/errors/http/503) [504 Gateway Timeout](/errors/http/504) [505 HTTP Version Not Supported](/errors/http/505) [506 Variant Also Negotiates](/errors/http/506) [507 Insufficient Storage](/errors/http/507) [508 Loop Detected](/errors/http/508) [510 Not Extended](/errors/http/510) [511 Network Authentication Required](/errors/http/511) [5xx errors](/errors/http/5xx-errors) [HTTP 200 OK](/errors/http/200) [HTTP 201 Created](/errors/http/201) [HTTP 204 No Content](/errors/http/204) [HTTP 206 Partial Content](/errors/http/206) [HTTP 301 Moved Permanently](/errors/http/301) [HTTP 302 Found](/errors/http/302) [HTTP 303 See Other](/errors/http/303) [HTTP 304 Not Modified](/errors/http/304) [HTTP 307 Temporary Redirect](/errors/http/307) [HTTP 308 Permanent Redirect](/errors/http/308) [HTTP 400 Bad Request](/errors/http/400) [HTTP 401 Unauthorized](/errors/http/401) [HTTP 405 Method Not Allowed](/errors/http/405)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [ETag](/glossary/etag) [A record (DNS address record)](/glossary/a-record) [Entity](/glossary/entity)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
