An error carries code, message, hint and retryable. The CLI exits with 2 for a retryable code and 1 otherwise.
| Code | HTTP | Retryable | Meaning |
|---|---|---|---|
E_FONT_UNKNOWN | 422 | no | |
E_ID_EXISTS | 409 | no | |
E_IDEMPOTENCY_MISMATCH | 409 | no | |
E_IN_USE | 409 | no | |
E_INTERNAL | 500 | no | |
E_INVALID_STATE | 409 | no | |
E_INVALID_TIME | 400 | no | |
E_LIMIT | 422 | no | |
E_NOT_EMPTY | 409 | no | |
E_NOT_FOUND | 404 | no | also used by the service for unknown projects, jobs, templates |
E_OUT_OF_SOURCE | 422 | no | |
E_OVERLAP | 409 | no | |
E_REVISION_CONFLICT | 409 | yes | |
E_SLOT | 422 | no | |
E_TYPE_MISMATCH | 422 | no | |
E_UNKNOWN_COMMAND | 400 | no | |
E_VALIDATION | 400 | no |
The service adds codes of its own (for example E_UNAUTHORIZED, E_ASSET_NOT_READY, E_QUEUE_FULL, E_EXPORT_FAILED); they appear in the results of the calls that raise them.