Media

Error codes

Error envelopes, statuses, and retry rules.

Guide →

Native APIs return error.code, error.message, and error.details. Compatible APIs return error.message and repeat it in X-Cld-Error; non-ASCII header messages are percent-encoded.

CodeNative HTTPCompatible HTTPRetryable
LIBRARY_NOT_FOUND404404no
ASSET_NOT_FOUND404404no
JOB_NOT_FOUND404404no
UNDERSTANDING_NOT_FOUND404404no
LIBRARY_INVALID_STATE409400no
INVALID_PARAMS400400no
INVALID_EXPRESSION400400no
UNSUPPORTED400400no
NOT_IMPLEMENTED501400no
FILE_TOO_LARGE413400no
FILE_EMPTY400400no
UNSUPPORTED_MEDIA415400no
FETCH_FAILED400400no
LIMIT_EXCEEDED400400no
CHUNK_INVALID400400no
RATE_LIMITED429420yes
CAPACITY503500yes
UPSTREAM_FAILED502500yes

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.
Export

On this page