Google API Core Client - Class ApiStatus (1.46.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
CANCELLED
UNKNOWN
INVALID_ARGUMENT
Value: 'INVALID_ARGUMENT'
DEADLINE_EXCEEDED
Value: 'DEADLINE_EXCEEDED'
NOT_FOUND
ALREADY_EXISTS
PERMISSION_DENIED
Value: 'PERMISSION_DENIED'
RESOURCE_EXHAUSTED
Value: 'RESOURCE_EXHAUSTED'
FAILED_PRECONDITION
Value: 'FAILED_PRECONDITION'
ABORTED
OUT_OF_RANGE
UNIMPLEMENTED
INTERNAL
UNAVAILABLE
DATA_LOSS
UNAUTHENTICATED
UNRECOGNIZED_STATUS
Value: 'UNRECOGNIZED_STATUS'
UNRECOGNIZED_CODE
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-31 UTC.
[null,null,["Last updated 2026-07-31 UTC."],[],[]]