All Products
Search
Document Center

:Error codes

Last Updated:Sep 08, 2026

Aidge APIs use a unified system that combines service-layer error codes with standard Alibaba Cloud platform (gateway layer) error codes. In an error response, the Code field contains the error code, and the Message field provides a description. At runtime, the system replaces the %s placeholder with context-specific information.

Service-level error codes

The Aidge service layer returns the following error codes, which are shared across all SKUs.

Error code

Error message

Cause

Solution

Input parameter errors

InvalidParameter

Invalid request parameter: %s

A request parameter is missing, incorrectly formatted, has the wrong data type, or is out of the valid range. The Message field identifies the specific parameter.

Check the API documentation to verify the parameter name, type, required status, and valid value range.

InputContentBlocked

Input content violates policy, please modify and retry: %s

The input text or image triggered the content moderation system (for example, due to sensitive words or prohibited images).

Modify the input content and retry the request. If you believe this is a false positive, contact technical support.

Authentication and account errors

CallerTypeNotSupported

Caller type not supported: %s (only main account 'customer' and sub-account 'sub' are allowed)

You called the API using an unsupported account type.

Use an Alibaba Cloud main account or a RAM sub-account for authentication. For more information, see Authentication.

UserStatusInvalid

Invalid user status: %s

The Alibaba Cloud account has an abnormal status, such as incomplete real-name verification or being suspended.

Log in to the Alibaba Cloud console to check your account status.

Service and quota errors

ServiceNotOpened

Service not activated, please activate the service first: %s

You requested an Aidge sub-service that has not been activated, for example, calling the image translation SKU without activating it first.

Go to the Aidge console to activate the corresponding service.

ServiceStatusInvalid

Service status abnormal, please contact the administrator: %s

The account or service has an invalid status, such as suspension or an overdue payment.

Check your Alibaba Cloud account balance and settle any overdue payment, or contact technical support.

FreeQuotaExhausted

Free quota exhausted; disable the 'stop-when-exhausted' switch or purchase a package: %s

You have exhausted the trial quota and have not purchased a paid package.

Purchase a package in the Aidge console, or disable the 'stop-when-exhausted' option on the quota management page.

PriorityUnavailable

Request priority unavailable: %s

The request used a priority parameter that is not supported.

Check that the priority parameter in your request is within the allowed range.

Output and downstream errors

OutputContentBlocked

Output content violates policy: %s

The content generated by the model triggered the content moderation system and therefore was not returned.

Adjust the semantics of your input and retry the request, or contact technical support.

DownstreamUnavailable

Service temporarily unavailable, details: %s

A downstream dependency, such as a model service or image download service, is temporarily unavailable.

Retry the request after a short delay. If the error persists, contact technical support.

Internal system errors

UsageParseFail

Internal system error: %s

Failed to parse usage statistics. This does not affect the request result.

Retry the request. If the error persists, log the RequestId and contact technical support.

BillingPushFail

Internal system error: %s

Failed to push billing data.

Retry the request. If the error persists, log the RequestId and contact technical support.

InternalError

System is busy, please retry later: %s

This is a catch-all for system errors that do not match a more specific error type.

Retry the request after a short delay. If the error persists, log the RequestId and contact technical support.

Platform error codes

Alibaba Cloud API Gateway returns these error codes, which apply to all Aidge APIs. The response body still contains the standard Code, Message, and RequestId fields, but the HTTP status code will be a 4xx or 5xx error.

Error code

HTTP status

Error message

Solution

ServiceUnavailable

503

The request failed because of a temporary server error.

Retry the request 1 to 3 times using linear backoff. If the error persists, log the RequestId and contact technical support.

Throttling

429

The request was denied due to throttling.

Implement an exponential backoff strategy (for example, with initial delays of 1s, 2s, 4s, and 8s) and reduce your concurrent request rate. To request a quota increase, contact technical support.

Throttling.Api

429

The request was denied due to API-level throttling.

API-level throttling. Check the QPS quota for the specific API. For more information, see Rate limit.

Throttling.User

429

The request was denied due to user-level throttling.

This is a user-level rate limit. Reduce your concurrent request rate and retry. To request a quota increase, submit a ticket.

NoPermission

403

You are not authorized to perform this action.

Ensure the RAM sub-account has the required access policy attached, such as AliyunAidgeFullAccess. For more information, see Authentication.

UnknownError

500

The request failed due to an unknown internal error.

Log the RequestId and contact technical support.

IncompleteSignature

400

The request signature does not conform to Alibaba Cloud standards.

Verify your HMAC-SHA256 signature calculation process. For more information, see Authentication.

InternalError

500

The request failed due to an unknown internal error.

Log the RequestId and contact technical support. The Message for this error differs from the service-level InternalError.

InvalidParameter

400

The specified parameter "%s" is not valid.

Check if the parameter value is within the platform's allowed range. The Message for this error differs from the service-level InvalidParameter.

MissingParameter

400

%s is mandatory for this action.

Add the missing required parameter and retry the request.

HTTP status codes

The HTTP status code provides a high-level indication of the request's outcome and serves as a secondary signal.

Status code

Description

Solution

200

The request was successfully processed. The Code field in the response body indicates the final business result. A value of "Success" means the operation was successful.

--

400

Your request was malformed. This often corresponds to service-level codes like InvalidParameter, MissingParameter, or IncompleteSignature.

Handle the error based on the Code in the response body.

401

Authentication failed. The AccessKey (AK/SK) signature is incorrect or the token has expired.

Check your AccessKey and signature calculation process. For more information, see Authentication.

403

Permission denied. Corresponds to the NoPermission error code.

Check the permissions of the RAM sub-account.

429

The request rate has exceeded the QPS limit. Corresponds to the Throttling, Throttling.Api, or Throttling.User error codes.

Retry the request using exponential backoff. For more information, see Rate limit.

500

An internal server error occurred. This often corresponds to service-level codes like InternalError, UnknownError, or DownstreamUnavailable.

Handle the error based on the Code in the response body.

503

The service is temporarily unavailable. Corresponds to the ServiceUnavailable error code.

Retry the request using linear backoff.

Error handling

  • Prioritize the Code field: Always check the Code field in the response body to determine your handling strategy. Use the HTTP status code as a secondary signal.

  • Retryable errors: For server-side errors like InternalError, UnknownError, DownstreamUnavailable, ServiceUnavailable, UsageParseFail, and BillingPushFail, we recommend retrying the request 2 to 3 times with exponential backoff.

  • Throttling errors: For all Throttling errors, you must implement an exponential backoff and client-side rate limiting. We recommend starting with a 1-second delay and retrying up to 5 times. If you consistently encounter this error, submit a ticket to request a quota increase.

  • Non-retryable errors: Errors like InvalidParameter, MissingParameter, InputContentBlocked, FreeQuotaExhausted, ServiceNotOpened, NoPermission, and IncompleteSignature are client-side errors. Retrying these requests will not succeed. You must fix the underlying issue in your request before resubmitting it.

  • Log the RequestId: The RequestId field in the response body is essential for troubleshooting. Always include this ID in your logs.

  • The %s placeholder: The %s placeholder in an error message represents specific context, such as a field name or service name, that is inserted at runtime.

Next steps

  • Rate limit -- Learn about the QPS quotas for each API.

  • API Overview -- Understand the overall API structure and synchronous/asynchronous conventions.

  • Authentication -- Learn about Alibaba Cloud AccessKey (AK/SK) authentication and the signature algorithm.