Google API Core Client - Class ApiStatus (1.35.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.35.1 keyboard_arrow_down
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 2024-12-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-17 UTC."],[],[]]