Status Codes
When you call any of the REST resources, the Response header returns one of the standard HTTP status codes defined in the following table. :
HTTP Status Code | Description |
---|---|
200 OK |
The request was successfully completed. A 200 status is returned for a successful GET or POST method. |
201 Created |
The request has been fulfilled and resulted in a new resource being created. The response includes a Location header containing the canonical URI for the newly created resource. A 201 status is returned from a synchronous resource creation or an asynchronous resource creation that completed before the response was returned. |
202 Accepted |
The request has been accepted for processing, but the processing has not been completed. The request may or may not eventually be acted upon, as it may be disallowed at the time processing actually takes place. When specifying an asynchronous ( The response contains a Location header of a job resource that the client should poll to determine when the job has finished. Also, returns an entity that contains the current state of the job. |
400 Bad Request |
The request could not be processed because it contains missing or invalid information, such as a validation error on an input field or a missing required value. |
401 Unauthorized |
The request is not authorized. The authentication credentials included with this request are missing or invalid. |
404 Not Found |
The request includes a resource URI that does not exist. |