BAD_REQUEST | 400 | The input failed validation or makes no sense in the current state. | Fix the input. data.issues names the field when it is a validation error. |
UNAUTHORIZED | 401 | No valid session. | Sign in again and retry with the new token. |
FORBIDDEN | 403 | You are signed in but not allowed to do this, for example a member trying to invite people. | Ask a space owner or admin. Do not retry. |
NOT_FOUND | 404 | The bot, chat or item does not exist in this space, or you cannot see it. | Check the id and the x-cadenceplus-space-id header. |
CONFLICT | 409 | Someone else changed the thing first, for example an instruction file saved in another tab. | Fetch the latest version, reapply your change, and send it again. |
PRECONDITION_FAILED | 412 | The server does not offer this, for example buying model credits on a server without managed models. | Do not retry. |
TOO_MANY_REQUESTS | 429 | A provider (for example the computer host) is limiting requests. | Wait, then retry with backoff. |
SERVICE_UNAVAILABLE | 503 | A provider is down or slow, such as a computer that did not start in time. | Retry with backoff. |
BAD_GATEWAY | 502 | An upstream service returned something unusable. | Retry with backoff. |
INTERNAL_SERVER_ERROR | 500 | An unexpected failure. | Retry once. If it repeats, report it with the time of the request. |