Expand description
Useful constants to work with ErrorReason
Constants§
- ACCESS_
TOKEN_ EXPIRED - The request is denied because the provided access token has expired.
- ACCESS_
TOKEN_ SCOPE_ INSUFFICIENT - The request is denied because the provided access token doesn’t have at least one of the acceptable scopes required for the API. Please check OAuth 2.0 Scopes for Google APIs for the list of the OAuth 2.0 scopes that you might need to request to access the API.
- ACCESS_
TOKEN_ TYPE_ UNSUPPORTED - The request is denied because the type of the provided access token is not supported by the API being called.
- ACCOUNT_
STATE_ INVALID - The request is denied because the account associated with the provided access token is in an invalid state, such as disabled or deleted. For more information, see https://cloud.google.com/docs/authentication.
- API_
KEY_ ANDROID_ APP_ BLOCKED - The request is denied because it violates API key Android application restrictions.
- API_
KEY_ HTTP_ REFERRER_ BLOCKED - The request is denied because it violates API key HTTP restrictions.
- API_
KEY_ INVALID - The request is denied because the provided API key is invalid. It may be in a bad format, cannot be found, or has been expired).
- API_
KEY_ IOS_ APP_ BLOCKED - The request is denied because it violates API key iOS application restrictions.
- API_
KEY_ IP_ ADDRESS_ BLOCKED - The request is denied because it violates API key IP address restrictions.
- API_
KEY_ SERVICE_ BLOCKED - The request is denied because it violates API key API restrictions.
- BILLING_
DISABLED - The request whose associated billing account is disabled.
- CONSUMER_
INVALID - The request is denied because the associated consumer is invalid. It may be in a bad format, cannot be found, or have been deleted.
- CONSUMER_
SUSPENDED - The request is denied because the consumer “projects/123” is suspended due to Terms of Service(Tos) violations. Check Project suspension guidelines for more information.
- CREDENTIALS_
MISSING - The request is denied because the request doesn’t have any authentication credentials. For more information regarding the supported authentication strategies for Google Cloud APIs, see https://cloud.google.com/docs/authentication.
- ERROR_
REASON_ UNSPECIFIED - Do not use this default value.
- GCP_
SUSPENDED - The request is related to a project for which GCP access is suspended.
- LOCATION_
POLICY_ VIOLATED - The request violates the location policies when creating resources in the restricted region.
- LOCATION_
TAX_ POLICY_ VIOLATED - The request whose associated billing account address is in a tax restricted location, violates the local tax restrictions when creating resources in the restricted region.
- MISSING_
ORIGIN - The request is denied because origin request header is missing.
- ORG_
RESTRICTION_ HEADER_ INVALID - The request is denied because “X-Goog-Allowed-Resources” header is in a bad format.
- ORG_
RESTRICTION_ VIOLATION - The request is denied because it violates Org Restriction: the requested resource does not belong to allowed organizations specified in “X-Goog-Allowed-Resources” header.
- OVERLOADED_
CREDENTIALS - The request is denied because the request contains more than one credential type that are individually acceptable, but not together. The customer should retry their request with only one set of credentials.
- RATE_
LIMIT_ EXCEEDED - The request is denied because there is not enough rate quota for the consumer.
- RESOURCE_
PROJECT_ INVALID - The request is denied because the provided project owning the resource which acts as the API consumer is invalid. It may be in a bad format or empty.
- RESOURCE_
QUOTA_ EXCEEDED - The request is denied because there is not enough resource quota for the consumer.
- RESOURCE_
USAGE_ RESTRICTION_ VIOLATED - The request is denied because the resource service usage is restricted by administrators according to the organization policy constraint. For more information see https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
- SECURITY_
POLICY_ VIOLATED - The request is denied because it violates VPC Service Controls. The ‘uid’ field is a random generated identifier that customer can use it to search the audit log for a request rejected by VPC Service Controls. For more information, please refer VPC Service Controls Troubleshooting
- SERVICE_
DISABLED - The request is calling a disabled service for a consumer.
- SERVICE_
NOT_ VISIBLE - Unimplemented. Do not use.
- SESSION_
COOKIE_ INVALID - The request is denied because the provided session cookie is missing, invalid or failed to decode.
- SYSTEM_
PARAMETER_ UNSUPPORTED - Unimplemented. Do not use.
- USER_
BLOCKED_ BY_ ADMIN - The request is denied because the user is from a Google Workspace customer that blocks their users from accessing a particular service.
- USER_
PROJECT_ DENIED - The request is denied because the caller does not have required permission on the user project “projects/123” or the user project is invalid. For more information, check the userProject System Parameters.