API Guide

Table Of Contents
Table 8. HTTP response codes (continued)
Request Response code
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 permitted before the connection
is closed.
Timeout=5; max=150
Content-length The length of the request body in 8-bit
bytes or octets.
Content-Length: 348
date The date and time that the message
originated, in HTTP-date format as
defined by RFC 7231 Date/Time
Formats.
date: Thu, 02 Apr 2009 11:11:28 GMT
Odata-version The version of Odata that is used. Odata: 4.0
Location Used in redirection or when a new
resource is created.
Location: <BASE_URI>/SessionService/
Sessions('3204bb9d-409d-4bd9-8a5f-
d44005c81a2c')
Server A name for the server. Server: Apache
x-frame-options Clickjacking protection:
deny no rendering within a frame
DENY
30 Key integration concepts