After APIs are called, data is returned in the unified format. A returned HTTP status code of
2xx indicates that the call is successful. A returned HTTP status code of
5xx indicates that the call fails. For successful calls, the primary formats of returned data are XML and JSON. When a request is sent, an external system can input parameters to specify the format of returned data. XML is the default format.
In this document, examples of results returned are formatted in a way that is easier for you to read. The actual results returned are not formatted with line breaks, indentation, or other layouts.
XML return results include a message stating if the request is successful and the specific service data. An example is as follows:
<?xml version="1.0" encoding="utf-8"?>
<!—Result root node-->
<!—Return request tag-->
<!—Return result data-->
/* Return result data*/
If an error is reported in an API call, no result data is returned. The caller can refer to the error code table in the appendix to locate the error cause. When an error occurs in a call, the HTTP request returns an HTTP status code of
5xx. The returned message body contains the specific error code and error message. The message body also contains a globally unique RequestId and the HostId of the site you accessed with this request. If unable to locate the error cause, the caller can contact Alibaba Cloud customer service and provide the HostId and RequestId to help solve the problem as quickly as possible.
<?xml version="1.0" encoding="UTF-8"?>
<Message>The specified action is not supported.</Message>
"HostId": " r-kvstore.aliyuncs.com",
"Message": "The specified action is not supported."