Help Center/ OBS PHP SDK/ API Reference/ Initialization/ SDK Common Result Objects
Updated on 2022-02-10 GMT+08:00

SDK Common Result Objects

API Description

After an API is called using an instance of ObsClient, view whether an exception is thrown. If no, an SDK common result object will be returned, indicating a successful operation. If yes, the operation fails and you need to obtain the error information from the instance of Obs\Common\ObsException.

Namespace

Class

Parent Namespace

Model

Obs\Internal\Common

Parameter Description

Field

Type

Description

HttpStatusCode

integer

HTTP status code

Reason

string

Reason description

RequestId

string

Request ID returned by the OBS server

Other fields

For details, see "Bucket-Related APIs" and "Object-Related APIs".