Reference
Errors and exit codes
QUALITY_UNAVAILABLE, ALL_PROVIDERS_FAILED and the rest.
Every failure carries a stable code, so the cockpit, headless mode and MCP clients can react to it precisely. In --json mode the code is the code field. As an MCP tool result it comes back as a normal tool error that the host can read. Messages are redacted before they are shown.
Codes
| Code | What it means | The fix |
|---|---|---|
QUALITY_UNAVAILABLE | Every model at or above your quality floor stayed busy for the whole patience window. Exit code 3. | Wait and try again, or lower routing.qualityFloor. A script or host should not retry in a loop. |
ALL_PROVIDERS_FAILED | No configured model could answer. The message lists what was tried and why each was skipped, and the earliest daily reset if there is one. | Run frontier doctor to see which layer fails. Add a provider, or wait for the quota to reset. |
NO_PROVIDER | No provider is configured. | Run frontier setup, or add OPENROUTER_API_KEY to ~/.frontier/.env, then run frontier doctor. |
NO_MODEL_AT_FLOOR | No configured model reaches your quality floor. Exit code 6. | The message names the exact setting: lower routing.qualityFloor, or add a model under that tier. |
MODEL_REJECTED | The model you pinned refused the request, and Relief stopped because you pinned it. Exit code 5. | Pick another with /model, or use frontier to let it route. |
PRIVACY_BLOCKED | Every configured provider is excluded by your privacy settings. | Check privacy.blockedProviders, privacy.noTraining and privacy.localOnlyPaths. |
NO_VISION_MODEL | You attached an image and no model at or above the floor accepts images. | Add a model under visionModels, or adjust the floor. |
FOLDER_NOT_TRUSTED | A tool asked to work in a folder that is not trusted. No model cost. | Run frontier trust "<folder>" in a terminal, then call again. |
UNSAFE_DIRECTORY | The folder is a drive root, your home folder, or a system folder. Refused even if trusted. | Point the task at a project folder. |
OUTSIDE_CLIENT_ROOTS | The MCP client declared its workspace roots and the folder is outside them. | Add the folder to the client's workspace (in Claude Code, /add-dir), or work inside a root. |
BAD_DIRECTORY | The folder does not exist. | Check the path. |
BAD_IMAGE | An attached image could not be read. | Check the file path and format. |
NO_CLIPBOARD_IMAGE | Alt+V found no image on the clipboard. | Copy an image first. |
FEEDBACK_EMPTY | frontier_feedback was called with none of whatSlowedDown, whatWorked or wishes. | Give it at least one. |
CANCELLED | Stopped by you or by the host. Exit code 130. | Nothing to fix. |
For MCP, a missing or wrongly typed argument fails at once with JSON-RPC error -32602, at no model cost.
HTTP statuses you may see in messages
These come from providers, not from Relief, but they show up in the "tried" list.
| Status | Usually means | What Relief does |
|---|---|---|
| 401 | The key is wrong, expired or revoked. | Marks the provider as rejecting its key and skips it for the session. |
| 402 | No credits, or a negative balance. | Skips the provider for a few minutes and says when it will check again. |
| 404 | The model id does not exist. | Skips that model. |
| 429 | A rate limit, or a daily quota. | Cools the model down for 90 seconds, or, for a daily quota, marks it used up until the reset. |
| 503 | The model is overloaded. | Cools the model down for 90 seconds and tries the next. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | Any other error. |
| 2 | No prompt was given, or an option value was not understood. |
| 3 | QUALITY_UNAVAILABLE. |
| 5 | MODEL_REJECTED. |
| 6 | NO_MODEL_AT_FLOOR. |
| 130 | CANCELLED. |
The same table, generated from the code, is on CLI.