class ApiStatus (View source)

Constants

OK

CANCELLED

UNKNOWN

INVALID_ARGUMENT

DEADLINE_EXCEEDED

NOT_FOUND

ALREADY_EXISTS

PERMISSION_DENIED

RESOURCE_EXHAUSTED

FAILED_PRECONDITION

ABORTED

OUT_OF_RANGE

UNIMPLEMENTED

INTERNAL

UNAVAILABLE

DATA_LOSS

UNAUTHENTICATED

UNRECOGNIZED_STATUS

UNRECOGNIZED_CODE

Methods

static bool
isValidStatus(string $status)

No description

static string
statusFromRpcCode(int $code)

No description

static int
rpcCodeFromStatus(string $status)

No description

static int
rpcCodeFromHttpStatusCode(int $httpStatusCode)

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

Details

static bool isValidStatus(string $status)

No description

Parameters

string $status

Return Value

bool

static string statusFromRpcCode(int $code)

No description

Parameters

int $code

Return Value

string

static int rpcCodeFromStatus(string $status)

No description

Parameters

string $status

Return Value

int

static int rpcCodeFromHttpStatusCode(int $httpStatusCode)

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

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

Parameters

int $httpStatusCode

Return Value

int