HTTP response status code 201 Created is returned by the server to indicate that a resource was successfully created by the HTTP request.
When the 201 Created status code is received, it is in response to an operation using the POST method, and indicates that the resource was uploaded for the first time. The HTTP response will optionally contain the Location HTTP header field to indicate where the resource was created. If the Location HTTP header is not included then it is the path originally specified by the HTTP request.
In the example, the client uploads XML data to the server and specifies /incoming/xml as the destination path. The server responds by acknowledging that the data was accepted and a file named article_1.xml was created.
POST /incoming/xml HTTP/1.1
<title>Test XML article</title>
HTTP/1.1 201 Created
Apache HttpComponents Core
HTTP response status code 201 Created indicates that data was received and saved as a new resource on the server, and that the HTTP request did not overwrite or update existing data on the server.