What Is HTTP 201 Created?
HTTP 201 Created explained, and what it means when you see it in CI/CD and deployments.
HTTP 201 signals that the request succeeded and created a new resource.
What it means
A 201 is returned by APIs after a POST that creates something, usually with a Location header pointing to the new resource. It is more specific than a plain 200.
When you see it in CI/CD
Integration tests in CI often assert 201 when testing resource-creation endpoints, and check the Location header points to the created item.
Key takeaways
- 201 means a resource was created.
- Often includes a Location header.
- Common assertion in API integration tests.
Related guides
What Is HTTP 200 OK?HTTP 200 OK means the request succeeded. Learn what it signals and how CI health checks use it.
What Is a REST API? Resource-Oriented Web APIsA REST API exposes resources over HTTP using standard methods and status codes. Learn what REST is and how CI…
What Is an Idempotent Request? Safe to RepeatAn idempotent request produces the same result whether sent once or many times. Learn what idempotency is and…