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.