Skip to content
中文

Error codes

Guide →

Responses return error.code, error.message, and error.details.

Code HTTP Retryable
LIBRARY_NOT_FOUND 404 no
ASSET_NOT_FOUND 404 no
WORK_NOT_FOUND 404 no
REVISION_CONFLICT 409 no
JOB_NOT_FOUND 404 no
UNDERSTANDING_NOT_FOUND 404 no
ASSET_VERSION_CHANGED 409 no
LIBRARY_INVALID_STATE 409 no
INVALID_PARAMS 400 no
INVALID_EXPRESSION 400 no
UNSUPPORTED 400 no
NOT_IMPLEMENTED 501 no
FILE_TOO_LARGE 413 no
FILE_EMPTY 400 no
FILE_NOT_READY 409 yes
UNSUPPORTED_MEDIA 415 no
FETCH_FAILED 400 no
LIMIT_EXCEEDED 400 no
CHUNK_INVALID 400 no
RATE_LIMITED 429 yes
CAPACITY 503 yes
UPSTREAM_FAILED 502 yes
CONTENT_REJECTED 422 no
GENERATION_FAILED 502 yes
BINDING_READ_ONLY 403 no
OPERATION_NOT_SUPPORTED 400 no
MODEL_PENDING 409 no
REFERENCE_TYPE_MISMATCH 400 no
CONSENT_REQUIRED 403 no
LIBRARY_IS_DEFAULT 409 no
JOB_INVALID_STATE 409 no
VOICE_TRAINING 503 yes
INSUFFICIENT_BALANCE 402 no

Use backoff for retryable errors. For other errors, correct the request or resource state first.

Model configuration errors

  • 400 INVALID_PARAMS: a model call ID is unavailable (Model <id> is not available), the vision model does not support image input, or models contains unknown roles, blank IDs, or invalid values.
  • 409 LIBRARY_INVALID_STATE: changing embedding when the library contains assets, including a reset that changes the model. The message is “库中已有素材时不能更换嵌入模型”.
  • 502 UPSTREAM_FAILED: the model catalog cannot be queried while writing model configuration; retry with backoff.