Module error_reason

Source
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.