Skip to main content

Semantic HTTP Status Codes

The CloudBase gateway returns HTTP status codes grouped by error scenario. Error codes that share a status require the same handling. All statuses listed on this page are 4XX and can be assigned a dedicated page in Custom Error Pages.

Only typical error codes are listed under each status below. For the full list, see Error Codes Overview.

Overview​

HTTP statusScenarioSuggested action
401Authentication failed: credential missing, invalid, or expiredCheck or renew the credential and sign in again
402Overdue payment, package exceeded, or resource isolatedTop up, upgrade the package, or reduce usage
403Insufficient permission or denied by access policyCheck permission and access policy configuration
404Resource not foundVerify that the resource, domain, or path exists
423Feature not enabled or route disabledEnable the feature in the console or check the route configuration
429Rate, quota, or concurrency limit exceededReduce the request rate or upgrade the quota
451Blocked or rejected for legal reasonsCheck content compliance

401 Unauthorized​

Authentication failed because the credential is missing, invalid, or expired. Check the credential in the request and sign in again if needed.

Error codeDescription
MISSING_CREDENTIALSMissing necessary authentication information in request header
INVALID_CREDENTIALSAuthentication failed, user information validation failed
ACCESS_TOKEN_INVALIDAuthentication information in request header is invalid
ACCESS_TOKEN_EXPIREDAccess token has expired
ACCESS_TOKEN_KID_INVALIDAccess token Key ID (kid) is invalid
AUTHENTICATION_FAILEDRequest authentication failed

402 Payment Required​

The resource is suspended due to overdue payment, an exceeded package, or isolation. Top up, upgrade the package, or reduce usage to restore it.

Error codeDescription
ENV_SUSPENDEDEnvironment is suspended, please check whether environment usage exceeds the package limit
ENV_ISOLATEDEnvironment is isolated after expiration, renew to restore it
DATABASE_RESOURCE_ISOLATEDPostgreSQL database resource is isolated
SERVICE_CHARGE_OVERDUEService suspended due to overdue payment, please recharge in time

403 Forbidden​

Permission is insufficient or the request is denied by an access policy. Check security rules, source restrictions, and other permission and policy settings.

Error codeDescription
ACCESS_DENIEDRequest denied by gateway policy
ACTION_FORBIDDENCurrent identity has no permission to execute this operation
EXCEED_AUTHORITYAuthority limit exceeded
STORAGE_EXCEED_AUTHORITYCurrent user has no permission to operate cloud storage resource
OBJECT_BATCH_TOO_LARGEToo many objects in single batch operation
FUNCTIONS_PERMISSION_DENIEDNo permission to call this cloud function
AI_MODEL_NOT_SUPPORTEDSpecific model is not supported
AI_CHANNEL_NOT_ALLOWEDThe Mini Program Growth Plan only supports calls from the Mini Program SDK and Cloud Development SDK
SERVICE_FORBIDDENService is disabled, may be due to permission closure, environment exception, or WeChat CloudRun starting
DEFAULT_DOMAIN_EXPIREDDefault domain has exceeded usage validity period, requires renewal or bind custom domain
CDN_SIGNATURE_MISSINGSignature missing for current access link
CDN_INVALID_SIGNATURESignature incorrect for current access link
CDN_SIGNATURE_EXPIREDSignature expired for current access link

404 Not Found​

The resource does not exist. Verify that the resource, domain, or path is created and configured correctly.

Error codeDescription
INVALID_HOSTInvalid host
INVALID_REGIONInvalid region
INVALID_PATHNo matching forwarding rule found, please check HTTP Gateway forwarding rule configuration
INVALID_ENVInvalid environment, environment not found
FUNCTIONS_NOT_FOUNDCloud function not found
FUNCTIONS_NAME_MISSINGFunction name not specified when calling
FUNCTIONS_QUALIFIER_NOT_FOUNDSpecified function version to access does not exist
SERVICE_NOT_FOUNDCorresponding CloudRun service not found
SERVICE_VERSION_NOT_FOUNDCannot find matching CloudRun service version
AI_MODEL_NOT_FOUNDSpecified model group not found

423 Locked​

The feature is not enabled or the route is disabled. Enable the feature in the console or check the route configuration.

Error codeDescription
HTTPSERVICE_NONACTIVATEDHTTP Gateway not enabled
GATEWAY_ROUTE_DISABLEDGateway route is disabled, please check the gateway route configuration
STATIC_RESOURCE_NONACTIVATEDStatic website hosting service not enabled
AI_MODEL_CONFIG_MISSINGMissing necessary configuration for calling model such as API Key
AI_MODEL_DISABLEDModel has been disabled

429 Too Many Requests​

The request rate, quota, or concurrency limit is exceeded. Reduce the request rate or upgrade the quota, then retry.

Error codeDescription
EXCEED_RATELIMITRequest frequency exceeds package or custom rate limit
EXCEED_REQUEST_LIMITRequest count limit exceeded, package resources exhausted
EXCEED_CONCURRENT_REQUEST_LIMITRequest concurrency limit exceeded
EXCEED_TOKEN_QUOTA_LIMITLarge model Token usage exceeded quota or model group quota unavailable
FUNCTIONS_EXCEED_RESOURCE_LIMITRequest frequency exceeds function provisioned concurrency

451 Unavailable For Legal Reasons​

The request is blocked or rejected for compliance reasons. Check content compliance.

Error codeDescription
REQUEST_FORBIDDENRequest is forbidden to access