SDK Custom Errors
API Description
Each time you fail to call an ObsClient API, an SDK custom error — containing an HTTP status code, OBS error code, and error message — is returned, to help you locate and rectify the fault.
Type Definition
type ObsError struct
Parameter Description
|
Field |
Type |
Description |
|---|---|---|
|
StatusCode |
int |
HTTP status code |
|
RequestId |
string |
Request ID returned by the OBS server |
|
ResponseHeaders |
map[string][]string |
HTTP response headers |
|
Status |
string |
Reason description |
|
Code |
string |
Error code returned by the OBS server |
|
Message |
string |
Error description returned by the OBS server |
|
Resource |
string |
Bucket and object related to the error |
|
HostId |
string |
Requested server ID |
Last Article: Log Initialization
Next Article: Enumeration Constants
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.