API24x7
201

Created

success

What does HTTP 201 mean?

The request succeeded and a new resource was created.

Common causes and when you see it

Returned after a successful POST that creates a record.

How to fix or handle it

Include a Location header pointing at the new resource and return its representation in the body.

Test it yourself

Send a request with the online API tester, inspect the response with the HTTP header checker, or host an endpoint that returns 201 with the mock API generator to see how your app reacts.

HTTP 201 questions

The request succeeded and a new resource was created.

Returned after a successful POST that creates a record.

Include a Location header pointing at the new resource and return its representation in the body.