Skip to content
Latchkey

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

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →