API Guide

Response codes
For synchronous operations, the server returns HTTP response codes 200 or 204. For operations that take a long time, the server returns
a status code of 202 along with an HTTP response header (Location). This response corresponds to the URI of the temporary resource
that can be used to monitor the operation.
The following table lists some of the response codes:
Table 8. HTTP response codes
Request Response code
Success codes
GET
200 – OK with message body
204 – OK with no message body
206 – OK with partial message body
POST
201 – Resource created (operation complete)
202 – Resource accepted (operation pending)
PUT
202 – Accepted (operation pending)
204 – Success (operation complete)
DELETE
202 – Accepted (operation pending)
204 – Success (operation complete)
Failure codes
Invalid parameter 400 - Invalid parameter
Authorization 401 - Authorization failure
Permission denied 403 - Permission denied
Not found 404 - Resource not found
Invalid request method 405 - Invalid request method
Internal server error 500 - Internal server error
Service unavailable 503 - Service unavailable
For more information about response codes, see Status Code Definitions on the W3.org website.
Response headers
The following table lists a few examples of response headers:
Table 9. Examples of response headers
Response Header Description Example
Connection Control options for the current connection
and list of hop-by-hop request fields.
Connection: Keep-Alive
Content-Type Specifies the format of the content that the
server returns. If there are multiple formats
that can be accepted in the client request
(using the Accept header), the server
chooses the appropriate supported format.
Content-Type: application/json;
odata.metadata=minimal
Keep-alive
Timeout header parameter indicates the
time that a connection is allowed to
remain idle before it is closed.
Max header parameter indicates the
maximum number of requests that are
Timeout=5; max=150
Key integration concepts 27