After the API service is called, data is returned in a unified format. The returned HTTP status code 2xx indicates that the call is successful. The returned HTTP status code 4xx or 5xx indicates that the call fails. For successful calls, the returned data are mainly in two formats: XML and JSON. When a request is sent, an external system can input a parameter to define the format of returned data, which is XML by default. In this document, examples of returned results are formatted in a way that is easier for you to view. The actual results returned are not formatted with line breaks, indentation, and so on.
XML returned results include a message stating if the request is successful and the specific service data.Example:
<?xml version="1.0" encoding="utf-8"?>
<!—Result root node-->
<!—Return request tag-->
<!—Return result data-->
/* Return result data*/
When an error occurs in an interface call, no results will be returned. You can refer to the attached appendix
When an error occurs in a call, an HTTP status code 4xx or 5xx will be returned for an HTTP request. The returned message body contains the specific error code and error message. The message body also contains the globally unique “RequestId” and the requested “HostId”. If you cannot find the error cause, you can contact Alibaba Cloud customer service and provide “HostId” and “RequestId” to help us solve the problem as quickly as possible.
<?xml version="1.0" encoding="UTF-8"?>
<Message>The specified parameter "Action or Version" is not valid.</Message>
"Message": "The specified parameter \"Action or Version\" is not valid."