ApiStatus
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
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.
Some codes are left out because they map to multiple gRPC codes (e.g. 500).