The HTTP status code 201 (Created) indicates that a request has been fulfilled and resulted in a new resource being created.
201 Created: This status code is used when a new resource is successfully created as a result of a POST request.
Use Case: Commonly returned in response to a POST request that adds a new item to a collection.
References:
HTTP Status Codes: HTTP Status Code 201
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit