Errors
The error object of the Private AI Workspace API and the codes that say what went wrong.
On this page
An error is an HTTP status and a JSON object whose code never changes its meaning.
The error object
| Field | Meaning |
|---|---|
code | A stable code for the cause. Act on this. |
message | A sentence to read in your logs. It can change, so do not show it to the people who use your software and do not match on it. |
fields | On a 400, each field that is wrong and why. Absent otherwise. |
requestId | The identifier of this request. Quote it when you ask us for help. |
Every answer, an error or not, carries the header X-RDC-Request-Id with the same value as requestId.
Codes every product shares
| Status | Code | Meaning | Retry |
|---|---|---|---|
400 | invalid_request | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one. | No. Fix the request. |
401 | unauthorized | The token is missing, expired or not ours. | After you get a new token. |
403 | forbidden | The token does not give access to this space or operation. | No. |
404 | <thing>_not_found | The record does not exist in this installation. | No. |
409 | revision_conflict | expectedRevision is older than the record. | Read the record again, then send a new operation. |
409 | operation_reused | This operationId was sent before with another body. | No. |
422 | A code of the product, such as blocked_by_checks | The request is well formed and a rule of the product refuses it. | No. The code says what to change. |
429 | rate_limited | Too many requests. Retry-After gives the seconds. | Yes, after the pause. |
503 | unavailable | The service cannot answer now. | Yes, with the same operationId. |
Codes of Private AI Workspace
| Status | Code | Meaning |
|---|---|---|
422 | outbound_denied | The destination is outside the perimeter and was refused. Nothing was sent and the audit log holds the entry. Aim the request at a service inside the installation. |
422 | no_readable_documents | Check the space, ready files and current permissions. |
422 | model_unavailable | Ask the administrator to load a model permitted for the team. |
422 | unreadable_file | Repair the source file, synchronise it and index again. |
422 | invalid_transition | Read current state and use a permitted transition. |
404 | record_not_found | Check the identifier within the authenticated account. |
422 | insufficient_memory | Free or increase the allocated capacity before loading the model. |
422 | stale_attempt | Discard the old indexing completion and read the current attempt. |
The full rule: Developer guide