Updated on 2022-02-22 GMT+08:00

Response

Status Code

After sending a request, you will receive a response, including a status code, response header, and response body.

A status code is a group of digits, ranging from 1xx to 5xx. It indicates the status of a request. For more information, see Status Code.

If status code 200 is returned for the calling of CBS APIs, the request is successful.

Response Header

Similar to a request, a response also has a header, for example, Content-Type. A response header in CBS has no special purpose and can be used to locate faults.

Response Body

The body of a response is often returned in structured format as specified in the Content-Type header field. The response body transfers content except the response header.

For the API used to obtain the list of questions, the following request body is returned. For details about the format, see the obtaining the list of questions response.

{     
    "questions":[
       "Failed to open the cloud desktop.",
       "Failed to log in to the cloud desktop."
     ]
}

If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.

{
    "error_code": "CBS.0022",
    "error_msg": "question can not be null"
}

In the response body, error_code is an error code, and error_msg provides information about the error.