The DevOps Drop
Home / Encyclopedia / HTTP Status Codes / 2xx Successful Responses / 201 Created

201 Created

The HTTP 201 Created status code indicates that a request successfully created a new resource. Learn how it is commonly used in REST APIs and automation workflows.

Published 16 Jul 2026 · HTTP Status Code

What is HTTP 201 Created?

The 201 Created status code indicates that a request has successfully created a new resource on the server.

It belongs to the 2xx Successful category and is commonly returned after POST requests.

When is 201 Created Used?

Servers typically return 201 Created after successfully creating something new.

  • Creating a user account
  • Creating an API resource
  • Uploading a file
  • Creating infrastructure objects

Example Response

HTTP/1.1 201 Created

Location: /users/123

{
    "id": 123,
    "name": "example"
}

The Location Header

A 201 Created response often includes a Location header containing the URL of the newly created resource.

Why Does It Matter For DevOps?

DevOps engineers encounter 201 responses when working with APIs, automation tools, and infrastructure platforms.

  • Terraform providers
  • Cloud APIs
  • CI/CD automation
  • Configuration management systems

Summary

The 201 Created response confirms that a new resource has been successfully created by the server.