This topic describes sample responses for API requests. Responses are in the JSON format. For more information, see Common parameters.

Sample success responses

If a request is successful, response parameters and the request ID are returned. An HTTP status code 2xx indicates that the request is successful. The following sample success response is in the JSON format:
    "RequestId": "4C467B38-3910-447D-87BC-AC049166F216",    
    /* Response data */

Sample error responses

If an API operation fails, you can check the causes based on the returned error code. If an error occurs during an API operation, a 4xx or 5xx HTTP status code is returned. The response body contains a specific error code, a message, and the values of the RequestId and HostId parameters. The RequestId parameter indicates the globally unique ID of the request. The HostId parameter indicates the ID of the host to which your request is sent. If you cannot find the causes, contact Alibaba Cloud Customer Services or submit a ticket, and provide the values of the HostId and RequestId parameters for quick troubleshooting. The following sample error response is in the JSON format:
    "RequestId": "8906582E-6722-409A-A6C4-0E7863B733A5",  
    "HostId": "",
    "Code": "BadRequest",
    "Message": "The request has invalid parameters."