All Products
Document Center


Last Updated: Mar 06, 2019

API responses support both the XML and JSON formats. The default format is XML. You can set the Format parameter in common request parameters to change the format of responses. For the sake of readability, lines in all sample responses are wrapped and indented in the API reference. Note that lines are not formatted in actual responses.

Successful response examples

  • XML format

    1. <? xml version="1.0" encoding="UTF-8" ? >
    2. <! -The root node of the response.-->
    3. <The operation name+Response.>
    4. <! -The tag of the response to the request.-->
    5. <RequestId>25818875-5F78-4A13-BEF6-D7393642CA58</RequestId>
    6. <! -The response data.-->
    7. </The operation name+Response.>
  • JSON format

    1. {
    2. "RequestId": "4C467B38-3910-447D-87BC-AC049166F216", /* The response data. */
    3. }

Error response examples

If an error occurs when you call an operation, the system returns an error response that consists of the request ID, error code (HTTP status code), and error message. The HTTP status code is 4xx or 5xx.You can check the returned error code and refer to Error codes in Appendixes to locate and solve the problem. If the problem persists, contact Alibaba Cloud customer service personnel and provide the HostId and RequestId parameter values.

  • XML format

    1. <? xml version="1.0" encoding="UTF-8"? >
    2. <Error>
    3. <RequestId>8906582E-6722-409A-A6C4-0E7863B733A5</RequestId>
    4. <HostId></HostId>
    5. <Code>UnsupportedOperation</Code>
    6. <Message>The specified action is not supported.</Message>
    7. </Error>
  • JSON format

    1. {
    2. "RequestId": "8906582E-6722-409A-A6C4-0E7863B733A5",
    3. "HostId": "",
    4. "Code": "UnsupportedOperation",
    5. "Message": "The specified action is not supported."
    6. }