Responses can be returned in the JSON or XML format. The default response format is XML. To change the format, you can specify the Format common parameter in requests.

Sample success responses

An HTTP status code 2xx indicates a successful call. An HTTP status code 4xx or 5xx indicates a failed call.

Note Sample responses that are provided in the API reference are formatted with line feeds and indentations for better readability. However, the actual responses are not formatted with line feeds or indentations.
JSON format
{
    "RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}

Sample error responses

If an error occurs when you call an operation, no result data is returned. You can troubleshoot the error based on operation-specific error codes and common error codes. If an error occurs during a call, an HTTP status code 4xx or 5xx is returned. The returned response body contains the specific error code and error message. The response body also contains the RequestId parameter that indicates the globally unique request ID and the HostId parameter that indicates the ID of the site that you requested.

If you cannot identify the cause of the error, you can contact the Alibaba Cloud customer service staff and provide the values of the returned HostId and RequestId parameters to help the staff resolve the error.

JSON format
{
    "Code":"InternalError",
    "HostId":"live.aliyuncs.com",
    "Message":"The request processing has failed due to some unknown error.",
    "RequestId":"6EBD1AC4-C34D-4AE1-963E-B688A228BE31"
}
                

Common error codes

For a list of common error codes, visit the API Error Center.