Response
Status Code
After sending a request, you will receive a response that includes 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 example, if status code 200 is returned for calling the API used to obtain an access credential, the request is successful.
(Optional) Response Header
This part is optional.
Similar to a request, a response also has a header, for example, Content-type.
The API used to obtain an access credential does not return a response header.
(Optional) Response Body
This part is optional. The body of a response is often returned in a structured format (for example, JSON or XML) as specified in the Content-Type header field. The response body transfers content except the response header.
The following is part of the response body for the API used to obtain an access credential.
{ "access_token" : "334*********************************140...", "token_type" : "Bearer", "expires_in" : 1719, "scope" : "all", "id_token" : "eyJ***************************************************************************pYW..." }
{ "error": "invalid_client", "error_description": "Bad client credentials" }
In the response body, error is an error code, and error_description 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