SDK Common Result Objects
Description
After you call an API in an instance of the ObsClient class, a common result object will be returned if no exception is thrown.
Parameter Description
|
Field |
Type |
Description |
|
|---|---|---|---|
|
CommonMsg |
Object |
Common information generated after the API calling is complete, including the HTTP status code and error code |
|
|
Status |
Number |
HTTP status code. If the value is smaller than 300, the operation succeeds. Otherwise, the operation fails. |
|
|
Code |
String |
Error code returned by the OBS server. If Status is smaller than 300, the value is null. |
|
|
Message |
String |
Error description returned by the OBS server. If Status is smaller than 300, the value is null. |
|
|
HostId |
String |
Server ID. If Status is smaller than 300, the value is null. |
|
|
RequestId |
String |
Request ID returned by the OBS server |
|
|
Id2 |
String |
Request ID2 returned by the OBS server |
|
|
Indicator |
String |
Detailed error code returned by the OBS server. If Status is smaller than 300, the value is null. |
|
|
InterfaceResult |
Object |
Result returned after an operation is successfully performed. If Status is smaller than 300, the value is null. |
|
|
RequestId |
String |
Request ID returned by the OBS server |
|
|
Id2 |
String |
Request ID2 returned by the OBS server |
|
|
Others |
For details, see chapters "Bucket-Related APIs" and "Object-Related APIs". |
||
Last Article: Request Objects
Next Article: Result Returned via a Callback Function
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.