Expand description

Useful constants to work with Code

Constants§

API_KEY_EXPIRED
The consumer’s API Key has expired.
API_KEY_INVALID
The consumer’s API key is invalid.
API_KEY_NOT_FOUND
The consumer’s API Key was not found in config record.
API_TARGET_BLOCKED
The API targeted by this request is invalid for the specified consumer project.
BILLING_DISABLED
The consumer cannot access the service because billing is disabled.
BILLING_STATUS_UNAVAILABLE
The backend server for checking billing status is unavailable.
CLIENT_APP_BLOCKED
The client application of the consumer request is invalid for the specific consumer project.
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE
Cloud Resource Manager backend server is unavailable.
CONSUMER_INVALID
The input consumer info does not represent a valid consumer folder or organization.
ERROR_CODE_UNSPECIFIED
This is never used in CheckResponse.
INVALID_CREDENTIAL
The credential in the request can not be verified.
IP_ADDRESS_BLOCKED
The IP address of the consumer is invalid for the specific consumer project.
NAMESPACE_LOOKUP_UNAVAILABLE
The backend server for looking up project id/number is unavailable.
NOT_FOUND
The consumer’s project id, network container, or resource container was not found. Same as [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND].
PERMISSION_DENIED
The consumer doesn’t have access to the specified resource. Same as [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
PROJECT_DELETED
The consumer’s project has been marked as deleted (soft deletion).
PROJECT_INVALID
The consumer’s project number or id does not represent a valid project.
REFERER_BLOCKED
The referer address of the consumer request is invalid for the specific consumer project.
RESOURCE_EXHAUSTED
Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
SERVICE_NOT_ACTIVATED
The consumer hasn’t activated the service.
SERVICE_STATUS_UNAVAILABLE
The backend server for checking service status is unavailable.