Error Codes Wiki

HTTP 201 Created — Resource Successfully Created

Informational2xx success

Overview

HTTP 201 Created indicates that a new resource has been successfully created on the server.

Key Details

  • Status: 201 Created
  • Category: 2xx Success
  • A new resource was created
  • Response includes Location header with new resource URL

Common Causes

  • Successful POST request creating a new resource
  • API endpoint created a new record
  • File upload completed successfully
  • User registration or account creation

Steps

  1. 1Check the Location header for the new resource URL
  2. 2Verify the response body contains the created resource
  3. 3Use the returned ID for subsequent requests
  4. 4Confirm the resource exists with a GET request

Tags

http-status2xx-successhttp-201httpstatus-code

More in 2xx Success

Frequently Asked Questions

200 means general success; 201 specifically means a new resource was created.