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 Codes.
If status code 200 is returned for the calling of SIS APIs, the request is successful.
Response Header
Similar to a request, a response also has a header, for example, Content-type. The response headers of SIS can be used for fault locating.
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.
The following shows part of the response body for the Short Sentence Recognition API. For details about the format, see the Short Sentence Recognition responses.
{ "trace_id": "567e8537-a89c-13c3-a882-826321939651", "result":{ "text": "Welcome to the voice cloud service.", "score": 0.9 } }
If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.
{ "error_msg": "***", "error_code": "SIS.0001" }
In the response body, error_code is an error code, and error_msg provides information about the error.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot