Google API Core Client - Class ApiStatus (1.35.1)

Namespace

Google \ ApiCore

Methods

static::isValidStatus

Parameter
Name Description
status string
Returns
Type Description
bool

static::statusFromRpcCode

Parameter
Name Description
code int
Returns
Type Description
string

static::rpcCodeFromStatus

Parameter
Name Description
status string
Returns
Type Description
int

static::rpcCodeFromHttpStatusCode

Maps HTTP status codes to Google\Rpc\Code codes.

Some codes are left out because they map to multiple gRPC codes (e.g. 500).

Parameter
Name Description
httpStatusCode int
Returns
Type Description
int

Constants

OK

Value: 'OK'

CANCELLED

Value: 'CANCELLED'

UNKNOWN

Value: 'UNKNOWN'

INVALID_ARGUMENT

Value: 'INVALID_ARGUMENT'

DEADLINE_EXCEEDED

Value: 'DEADLINE_EXCEEDED'

NOT_FOUND

Value: 'NOT_FOUND'

ALREADY_EXISTS

Value: 'ALREADY_EXISTS'

PERMISSION_DENIED

Value: 'PERMISSION_DENIED'

RESOURCE_EXHAUSTED

Value: 'RESOURCE_EXHAUSTED'

FAILED_PRECONDITION

Value: 'FAILED_PRECONDITION'

ABORTED

Value: 'ABORTED'

OUT_OF_RANGE

Value: 'OUT_OF_RANGE'

UNIMPLEMENTED

Value: 'UNIMPLEMENTED'

INTERNAL

Value: 'INTERNAL'

UNAVAILABLE

Value: 'UNAVAILABLE'

DATA_LOSS

Value: 'DATA_LOSS'

UNAUTHENTICATED

Value: 'UNAUTHENTICATED'

UNRECOGNIZED_STATUS

Value: 'UNRECOGNIZED_STATUS'

UNRECOGNIZED_CODE

Value: -1