handy.moe

All tools / Debug tools / Status codes

HTTP 201 Created

The request worked and a new resource now exists.

This page runs in your browser and makes no requests.

201 Created

The request worked and a new resource now exists.

Common causes

A successful POST or PUT that created something.

What to do

Return a Location header with the new resource's URL and, usually, the resource in the body.

Class: 2xx Success · Defined in RFC 9110 §15.3.2

How to use it

  1. Look at the response in your browser's Network tab, or run curl -i URL to see the status line and headers.
  2. Read the response body: many servers explain the exact reason there.
  3. Fix the cause above and send the request again.

Questions

Is 201 an error?

No. 201 is a success code.

Should I retry a 201?

No need: it worked.

Where can I see the 201 in my browser?

Open the developer tools (F12 or Cmd+Option+I), go to the Network tab, reload, and look at the Status column. Click the request and open the Response and Headers tabs for the details.