Error Code Reference

Updated at:
Copy as MD

Real Translation Buddy OpenAPI returns errors through two distinct channels:

  • Business errors — HTTP 200 with Success: false in the response body, plus Code and Message fields. These cover business logic errors such as insufficient Credits, invalid task state, or unsupported file format.

  • Gateway/auth errors — HTTP 4xx thrown as SDK exceptions (e.g., TeaException). These cover parameter validation failures, authentication issues, and throttling at the gateway layer.

Example of a business error response:

{
  "Success": false,
  "Code": "Task.NotFound",
  "Message": "Task does not exist or you do not have access permission",
  "RequestId": "AB1F2C3D-..."
}

Client-side errors

Parameter validation

Code

Description

Suggested action

InvalidParameter

Request parameter validation failed

Check whether required parameters are present and correctly formatted

InvalidParameter.Config

Translation config is invalid (e.g., unsupported language pair, missing required fields)

Check that SourceLanguage and TargetLanguage form a supported language pair for the file type. Verify all required Config fields are present.

InvalidParameter.Page

Pagination parameter is invalid

Check MaxResults / NextToken parameters

File errors

Code

Description

Suggested action

File.Invalid

The file was not uploaded correctly. This error typically occurs when calling the raw OpenAPI without going through the SDK's two-step upload flow.

Use the SDK's UploadTranslationFileAdvance method to upload local files. If calling the raw OpenAPI, first call GetUploadCredential to obtain STS credentials, upload to OSS, then call AnalyzeDocument.

File.Unreachable

File cannot be accessed

The file link may have expired; re-upload the file

UnsupportedFileFormat

Unsupported file format

Supported formats: .pptx / .ppt / .docx / .doc / .xlsx / .xls / .pdf / .txt / .md / .mp4 / .jpg / .jpeg / .png / .webp

FileTooLarge

File exceeds size limit

Size limits: images 50 MB, MP4 1 GB, other formats 500 MB. Compress or split the file and retry.

EmptyDocument

Document content is empty

Document word/page count is 0, cannot translate

Video.DurationExceeded

The video exceeds the 1-hour (3,600 seconds) duration limit

Trim the video to under 1 hour and upload it again

Credits and sensitive content

Code

Description

Suggested action

Credits.NotEnough

Insufficient Credits balance

Check seat usage; contact the admin to renew or purchase an add-on package

Sensitive.Blocked

Document contains blocked sensitive content

The document was blocked by the security policy; check its content

Identity and permission errors

Code

Description

Suggested action

Identity.SkRequired

Member account did not pass an API Key

Pass the API Key via the APIKey parameter

Identity.NotBound

API Key is not bound to a business identity

Complete API Key binding in the console

Seat.NotAvailable

No valid seat bound

Contact the admin to assign a seat in the console

Forbidden.RAM

RAM user lacks the required API permission

Contact the admin to grant the AliyunRealTranslationAgentOperatorAccess policy (for OpenAPI calls) or AliyunRealTranslationAgentFullAccess (for console access)

SubAccountNoPermission

Sub-account has no permission

Contact the Alibaba Cloud account for authorization

Resource and state errors

Code

Description

Suggested action

Task.NotFound

Task does not exist or you do not have access

Confirm the TaskId is correct and belongs to the current caller

Task.NotModifiable

The task is in a terminal state and cannot be modified

Only tasks in PENDING or PROCESSING status can be cancelled. Tasks that are already COMPLETED, FAILED, or CANCELLED cannot be modified.

Task.NotSucceeded

Translation is not complete yet

Wait for the task to complete before downloading the translated file

Gateway and authentication errors (HTTP 4xx)

These errors are thrown as SDK exceptions (e.g., TeaException) rather than returned in the response body. They originate from the Alibaba Cloud API gateway layer.

Code

Description

Suggested action

InvalidAccessKeyId.NotFound

The AccessKey ID does not exist

Verify the AccessKey ID is correct and active

SignatureDoesNotMatch

Request signature verification failed

Check the AccessKey Secret; ensure the system clock is synchronized

MissingConfig

Required Config parameter is missing from the request

Ensure the Config object with SourceLanguage and TargetLanguage is included

MissingSourceLanguage

SourceLanguage is missing from the Config

Set Config.SourceLanguage to a valid language code

Throttling

Requests exceed the gateway-level rate limit

Reduce the request rate; implement exponential backoff and retry

Throttling (business layer)

Code

Description

Suggested action

Throttling

Requests are too frequent

Reduce the request rate; increase the interval and retry

Server-side errors

Code

Description

Suggested action

InternalError

Internal service error

Retry later; if the issue persists, please click here to contact us (top-right corner Real Translation Buddy logo icon)

ServiceUnavailable

Service is under maintenance

Retry later

NotApplicable

The current region is not supported

Confirm the endpoint and region are correct