Result

更新时间:
复制 MD 格式

This topic describes the responses for Alibaba Cloud RTC API calls. Responses are returned in either XML or JSON format, with XML as the default. You can change the format by specifying the Format request parameter.

Note For readability, the response examples in this topic are formatted with line breaks and indents.

Normal response examples

A 2xx HTTP status code indicates that the API call was successful.

  • The following is an XML example.

    <?xml version="1.0" encoding="UTF-8" ?>
    <!--The root node of the response.-->
    <APIName+Response>
        <!--The request ID.-->
        <RequestId>25818875-5F78-4A13-BEF6-D7393642CA58</RequestId>
        <!--The response data.-->
    </APIName+Response>
  • The following is a JSON example.

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

Error response examples

A 4xx or 5xx HTTP status code indicates that the API call failed. The response includes the RequestId, HostId, error code, and error message.

  • The following is an XML example.

    <?xml version="1.0" encoding="UTF-8"?> 
    <Error>
        <RequestId>8906582E-6722-409A-A6C4-0E7863B733A5</RequestId> 
        <HostId>rtc.aliyuncs.com</HostId> 
        <Code>UnsupportedOperation</Code>
        <Message>The specified action is not supported.</Message>
    </Error>
  • The following is a JSON example.

    {
        "RequestId": "8906582E-6722-409A-A6C4-0E7863B733A5", 
        "HostId": "rtc.aliyuncs.com",
        "Code": "UnsupportedOperation",
        "Message": "The specified action is not supported."
    }