All HTTP responses from the APIs must include a status code and, depending on the request, include a body or a URL. Some responses might be empty.

HTTP Response Codes

The following standard HTTP response codes must be returned when an API request is sent.

Table 1. HTTP Status Codes
Status Code Status Description
200 OK The request is valid. All GET requests return this response.

Some APIs may send this code for both a successful response and if there are errors in completing the request. The accompanying message in the document body indicates success or failure.

201 OK POST requests return this code after success.
400 User error The request body is missing key parameters required to complete the request.
500 Server error A server error with additional details provided in the response body.