Troubleshooting

Last updated: 2019-08-19 10:23:12

PDF

Overview

The response returned by an API is of the Response type in Go's HTTP standard library. You can get the error code and message returned by the server through err.Error(). For more information, see COS Error Codes.

Server Exceptions

The response returned by an API contains the following call structure:

Member Description Type
X-Cos-Request-Id Response header and request ID are used to represent a request and are very important for troubleshooting string
StatusCode Status code in the response. 4xx indicates that the request failed due to a client exception; while 5xx indicates that the request failed due to a server exception. For more information, see [COS Error Codes](https://intl.cloud.tencent.com/document/product/436/7730) string