Reference

Error codes

Every error is a JSON object with a stable code, a message, and a requestId. Match on the code, not the message text.

The error shape

Error response
{
  "error": {
    "code": "missing_end_user_token",
    "message": "An end-user bearer token is required",
    "requestId": "req_example"
  }
}

Some errors add a details field (for example, which quota was exceeded). The requestId appears in the project’s request logs, so you can trace a failure from the Console.

Authentication and sessions

StatusCodeCause and fix
401missing_api_keySend the publishable key in the apikey header
401invalid_api_keyThe key is not active for this project; check or rotate it
401missing_end_user_tokenSend the user’s JWT as Authorization: Bearer …
401invalid_tokenExpired or unverifiable JWT; refresh the session
401session_revokedThe session was revoked; sign in again
401mfa_requiredThe project requires an MFA-verified session
401invalid_credentialsWrong email or password
401invalid_refresh_tokenExpired, revoked, or reused refresh token; sign in again
401invalid_challengeMFA challenge expired or already used
401invalid_mfa_codeWrong TOTP code
401invalid_id_tokenGoogle ID token failed verification or nonce check
403user_bannedThe user is banned in the Console
403signup_disabledSignup is switched off for the project
403password_signin_disabledPassword sign-in is switched off
403anonymous_disabledEnable Allow anonymous sign-ins in Providers
403provider_disabledEnable Google sign-in in Providers
403mfa_disabledEnable MFA before enrolling factors
403mfa_enrollment_requiredRequired MFA: the user must enroll a factor first
400weak_passwordMeet the minimum length; do not reuse the email
400conversion_requires_credentialsAnonymous conversion needs email and password together
400unsupported_grantgrant_type must be password, refresh_token, mfa, or id_token
400unsupported_providerOnly the google provider is supported
400invalid_redirectredirect_to is not a valid http(s) URL
400redirect_not_allowedAdd the URL to the App redirect allowlist
400invalid_stateOAuth state missing, expired, or already used
400email_requiredThe Google account did not provide an email
409user_existsA user with that email already exists
409identity_existsThe Google account is linked to another user
409email_mismatchThe Google email differs from the signed-in user’s
429rate_limitedToo many attempts; back off and retry later

Data API

StatusCodeCause and fix
400invalid_filterFilters must be column=op.value with a supported operator
400invalid_columnUnknown column, or a bad select list
400invalid_orderorder must be column.asc or column.desc (max 3)
400invalid_bodyBody must be a non-empty JSON object (max 64 fields); on RPC, named arguments that fit the parameters
400validation_errorlimit/offset out of range, or a bad row id
400not_null_violationA required column was omitted
400check_violationA value failed a check constraint
400invalid_inputA value does not fit the column type
400numeric_overflowA number is out of range for the column
403forbiddenThe row policy rejected the read or write, or the api role lacks a table grant inside an RPC function
404not_foundUnknown or unexposed table, a missing/hidden row, or an RPC function without a matching grant and arguments
405method_not_allowedExpose that operation on the table
408statement_timeoutThe query timed out; simplify it
409conflictUnique constraint violated
409foreign_key_violationThe referenced row does not exist
300ambiguous_functionSeveral RPC overloads match the arguments; details lists the signatures
413result_too_largeAn RPC set-returning function produced more than 10000 rows

Database objects (Console)

The Database menu managers — policies, functions, triggers, indexes, types, views — return these codes when a definition is rejected. Everything they manage lives in the public schema.

StatusCodeCause and fix
400validation_errorA name, expression, or option failed validation; the details list the field
400invalid_definitionPostgreSQL rejected the definition (e.g. a bad function body)
400invalid_columnAn expression or index references a column the table does not have
400invalid_sqlThe statement could not be executed as written
400undefined_functionA trigger or expression references a function that does not exist
400not_supportedThe requested operation is not supported for that object
403extension_functionThe function belongs to an extension; it cannot be edited or dropped. Disable the extension instead
404not_foundThe object does not exist in the public schema
409already_existsAn object with that name already exists
409object_in_useOther objects depend on it; drop the dependents first

Storage

The /storage/v1 endpoints return these codes. Quota errors include the limit and current consumption in details; private objects never leak their existence to unauthorized callers.

StatusCodeCause and fix
402STORAGE_PROJECT_QUOTA_EXCEEDEDProject storage full; delete objects or upgrade
402STORAGE_ACCOUNT_QUOTA_EXCEEDEDAccount-wide storage full; delete objects or upgrade
402STORAGE_BANDWIDTH_QUOTA_EXCEEDEDMonthly download budget exhausted; resets next billing cycle
413STORAGE_FILE_TOO_LARGEFile exceeds the plan or bucket maximum
403STORAGE_BUCKET_ACCESS_DENIEDThe caller cannot access this bucket
410STORAGE_UPLOAD_EXPIREDUpload session expired; start a new upload
404STORAGE_OBJECT_NOT_FOUNDMissing object, or private and not visible to you
409storage_object_existsPath already taken; pass overwrite: true to replace
415storage_mime_not_allowedMIME type not in the bucket allowlist

Functions

The /functions/{name} gateway returns these codes before or around execution. Quota and concurrency refusals never reach the runtime and are not metered as invocations. Execution failures (a thrown error or a timeout) return 500 with the invocation id; the details live in Executions & Logs, never in the caller response.

StatusCodeCause and fix
401invalid_signatureHMAC signature missing or wrong; sign the exact raw bytes you send
401signature_timestamp_expiredTimestamp outside the tolerance window; use the current unix time
401signature_replayedThe nonce was already used; generate a fresh nonce per delivery
402FUNCTIONS_QUOTA_EXCEEDEDMonthly invocations or GB-seconds exhausted; upgrade or wait for the cycle reset
404function_not_foundUnknown function, no enabled HTTP trigger, or an internal-only function
409function_disabledThe function is disabled; enable it in the Console
409function_not_deployedNo active deployment yet; deploy the function first
409signature_not_configuredHMAC mode is on but no signing secret exists; rotate the signature secret
413request_too_largeBody exceeds the platform function request limit
429FUNCTIONS_CONCURRENCY_LIMITAll concurrent execution slots are busy; retry shortly
429rate_limitedPer-project HTTP rate limit reached; back off and retry
502response_too_largeThe handler returned an oversized response; return less data
503functions_disabledFunctions is switched off on this engine deployment

Management APIs (Console) additionally return validation_error for bad names, cron expressions or configurations, name_conflict when a secret and a variable share a name, already_exists for duplicate triggers, and deployment_not_ready when activating a version that is not ready.

Project and platform

StatusCodeCause and fix
402quota_exceededA shared quota (MAU, API requests, bandwidth, function invocations or compute) or a database-size limit was reached; details carries the resource, scope, usage, limit and reset date. Upgrade, reduce usage, or (paid plans) enable additional usage in Console → Billing → Additional Usage
402spending_limit_reachedThe organization enabled additional usage and its estimated metered spending reached the monthly spending limit; details carries the limit and current spend. Included quotas are unaffected. Raise the limit, reduce usage, or wait for the billing-period reset
403project_suspendedAccount over quota past the grace period; upgrade or reduce
403project_pausedFree project idle 14 days; resume from the Console
404project_not_foundUnknown slug, or the project is not active yet
409project_not_readyProvisioning has not finished
400invalid_sqlThe SQL editor accepts one read-only statement
403read_onlyThe statement cannot modify data
500internal_errorUnexpected failure; retry, and contact support with the requestId

Additional resources