All HTTP status codes

HTTP 201 Created

Success

The request succeeded and a new resource was created. The Location header usually points at the new resource — the canonical response for a successful POST in REST APIs.

Defined in RFC 9110

Common causes

  • Successful resource creation (POST /users, PUT to a new URL)

How to fix it

  1. Nothing to fix

  2. API consumers should read the Location header instead of assuming the new resource URL

Want to explore status codes interactively? Try the free HTTP Status Code Reference — search, categories and example responses, right in your browser.