201

HTTP 201 Created

2xx Success

  1. Home
  2. > HTTP Status Codes >
  3. > 2xx >
  4. 201
2xx Success RFC 7231, Section 6.3.2

What is HTTP 201 Created?

The 201 (Created) status code indicates that the request has been fulfilled and has resulted in one or more new resources being created. The primary resource created is identified by a Location header in the response. This is typically used in RESTful APIs for POST and PUT requests that create new resources.

Common Use Cases

  • Creating a new user account via API
  • Adding a new record to a database
  • File upload completion
Help2Code Logo
Menu