Returned Values
After sending a request, you will receive a response, including the status code, response header, and response body.
Status Codes
A status code is a group of digits indicating the status of a response. It ranges from 2xx (indicating successes) to 4xx or 5xx (indicating errors). For more information, see Status Codes.
Response Headers
A response header corresponds to a request header, for example, Content-Type.
| Header | Description |
|---|---|
| Content-Length | The length (in bytes) of the response body. Type: string Default value: none |
| Connection | Indicates whether the connection to the server is a long connection or a short connection. Type: string Valid values: keep-alive | close Default value: none |
| Date | The time when a response is returned. Type: string Default value: none |
| x-obs-id-2 | A special symbol that helps troubleshoot faults. Type: string Default value: none |
| x-obs-request-id | The unique identifier of the request. The value is generated by the SFS service and can be used for troubleshooting. Type: string Default value: none |
(Optional) Response Body
A response body is generally returned in a structured format (for example, JSON or XML), corresponding to Content-Type in the response header, and is used to transfer content other than the response header.