RelayRunner docs: Errors
Page: https://relayrunner.dev/docs/reference/errors
Markdown: https://relayrunner.dev/docs/reference/errors.md
All pages: https://relayrunner.dev/docs/llms.txt

Other pages (Markdown):
- Route GitHub Actions jobs to any runner: https://relayrunner.dev/docs/get-started/overview.md
- How it works with GitHub Actions: https://relayrunner.dev/docs/get-started/github-actions.md
- Quickstart: https://relayrunner.dev/docs/get-started/quickstart.md
- Install the CLI: https://relayrunner.dev/docs/get-started/install.md
- RelayRunner for Mac: https://relayrunner.dev/docs/get-started/mac-app.md
- Set up with an agent: https://relayrunner.dev/docs/get-started/agents.md
- Move your workflows over: https://relayrunner.dev/docs/get-started/move-over.md
- Principles: https://relayrunner.dev/docs/concepts/principles.md
- Routing: https://relayrunner.dev/docs/concepts/routing.md
- Runner order: https://relayrunner.dev/docs/concepts/runner-order.md
- Optimized checks: https://relayrunner.dev/docs/concepts/optimized-checks.md
- Spend controls: https://relayrunner.dev/docs/guides/spend-controls.md
- Providers: https://relayrunner.dev/docs/runners/providers.md
- Your machines: https://relayrunner.dev/docs/runners/self-hosted.md
- GitHub-hosted: https://relayrunner.dev/docs/runners/github.md
- Hosted providers: https://relayrunner.dev/docs/runners/hosted.md
- Runner labels: https://relayrunner.dev/docs/reference/labels.md
- Add a provider: https://relayrunner.dev/docs/contribute/add-provider.md
- Run CI on your laptop while you work: https://relayrunner.dev/docs/guides/laptop-ci.md
- macOS and iOS builds on your Mac: https://relayrunner.dev/docs/guides/mac-builds.md
- Share your team's machines: https://relayrunner.dev/docs/guides/team-machines.md
- Keep up with coding agents: https://relayrunner.dev/docs/guides/agent-surge.md
- Activity and history: https://relayrunner.dev/docs/dashboard/activity.md
- Signals: https://relayrunner.dev/docs/dashboard/signals.md
- Performance: https://relayrunner.dev/docs/dashboard/performance.md
- Usage and savings: https://relayrunner.dev/docs/dashboard/usage.md
- Telemetry: https://relayrunner.dev/docs/dashboard/telemetry.md
- AI: https://relayrunner.dev/docs/dashboard/ai.md
- CLI: https://relayrunner.dev/docs/reference/cli.md
- relay.yml inputs: https://relayrunner.dev/docs/reference/relay-inputs.md
- Repo config: https://relayrunner.dev/docs/reference/repo-config.md
- MCP server: https://relayrunner.dev/docs/reference/mcp.md
- RelayRunner API: https://relayrunner.dev/docs/reference/api.md
- Workspaces and members: https://relayrunner.dev/docs/dashboard/workspaces.md
- GitHub App: https://relayrunner.dev/docs/reference/github-app.md
- Security: https://relayrunner.dev/docs/reference/security.md
- Data and privacy: https://relayrunner.dev/docs/reference/privacy.md
- Remove RelayRunner: https://relayrunner.dev/docs/dashboard/remove.md
- Troubleshooting: https://relayrunner.dev/docs/reference/troubleshooting.md
- Errors: https://relayrunner.dev/docs/reference/errors.md (this page)
- FAQ: https://relayrunner.dev/docs/reference/faq.md
- Feedback: https://relayrunner.dev/docs/contribute/feedback.md
- Changelog: https://relayrunner.dev/docs/changelog.md
- Agents can change your routing: https://relayrunner.dev/docs/changelog/agent-changes.md
- Confirm agent changes that pause or reorder runners: https://relayrunner.dev/docs/changelog/agents-ask-first.md
- Pick runner sizes on the dashboard: https://relayrunner.dev/docs/changelog/auto-runner-sizes.md
- CLI changelog: https://relayrunner.dev/docs/changelog/cli.md
- Failed checks show why a job couldn't route: https://relayrunner.dev/docs/changelog/couldnt-route-check.md
- Try a runner provider on your own workflows: https://relayrunner.dev/docs/changelog/evaluate-a-provider.md
- Routing retries through GitHub outages: https://relayrunner.dev/docs/changelog/github-outages.md
- Send job logs to OpenTelemetry or an S3 bucket: https://relayrunner.dev/docs/changelog/job-log-export.md
- Job time split into setup, build and test: https://relayrunner.dev/docs/changelog/job-phases.md
- Mac app changelog: https://relayrunner.dev/docs/changelog/mac.md
- RelayRunner for Mac: https://relayrunner.dev/docs/changelog/mac-app.md
- Send a crash report from the Mac app: https://relayrunner.dev/docs/changelog/mac-crash-reports.md
- Route jobs by os, arch and cpus: https://relayrunner.dev/docs/changelog/machine-shapes.md
- CI traces in your observability tool: https://relayrunner.dev/docs/changelog/opentelemetry-traces.md
- Platform changelog: https://relayrunner.dev/docs/changelog/platform.md
- Retries, queueing and provider usage: https://relayrunner.dev/docs/changelog/retries-queueing-and-provider-usage.md
- Route a repo from the dashboard: https://relayrunner.dev/docs/changelog/route-a-repo.md
- Per-workflow run times and job sizing for members: https://relayrunner.dev/docs/changelog/run-times.md
- Usual job times, job history and the Mac queue: https://relayrunner.dev/docs/changelog/usual-times-and-mac-queue.md

---

# Errors

> The error codes the API returns, and what each one means.

When a request fails, the API answers with an HTTP error status and a JSON body like this one:

```json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Not found.",
    "details": {}
  }
}
```

- `code` names what went wrong. Codes never change once they ship, so branch on the code.
- `message` is a sentence you can show a person or pass to an agent. Its wording can change.
- `details` appears on some codes with more context, such as the problems in a runner order.

When a code means you can try again later, such as `RATE_LIMITED`, the response also has a `Retry-After` header with the seconds to wait. The [MCP server](/docs/reference/mcp) passes the message and the code to your agent.

## Codes

| Code | Status | Message |
| --- | --- | --- |
| `AGENT_CHANGES_OFF` | 403 | This agent can't make changes in this workspace. Its person can turn on Allow changes for it in Settings → Agents. |
| `AGENT_NOT_ALLOWED` | 403 | Agent tokens can't call this route. |
| `BUCKET_INVALID` | 400 | Check the bucket settings: an https endpoint, the bucket's name and its region. |
| `BUCKET_NOT_CONFIGURED` | 404 | No bucket is set up for this workspace. |
| `BUCKET_SECRET_MISSING` | 400 | Enter the secret access key. |
| `CANNOT_DELETE_SELF` | 400 | You can't delete your own account here. |
| `CANNOT_DEMOTE_SELF` | 400 | You can't remove your own operator role. |
| `DEVICE_CODE_CLAIMED` | 403 | Another account already approved or denied this request. Run `relayrunner connect` again for a new code. |
| `DEVICE_CODE_EXPIRED` | 400 | That code has expired. Run `relayrunner connect` again for a new one. |
| `DEVICE_CODE_INVALID` | 400 | That code doesn't match a sign-in request. Check it against your terminal. |
| `DEVICE_CODE_USED` | 409 | That code has already been used. |
| `EVALUATION_ACTIVE` | 409 | This workflow is already being evaluated. Wait for it to finish or stop it first. |
| `EVALUATION_NOT_STARTED` | 502 | GitHub didn't start the workflow. Try again in a minute. |
| `FORBIDDEN` | 403 | You don't have access to that. |
| `GITHUB_APP_NOT_CONFIGURED` | 500 | The GitHub App isn't set up. |
| `GITHUB_RATE_LIMITED` | 503 | GitHub's API limit was reached. Try again shortly. |
| `GITHUB_UNAVAILABLE` | 502 | GitHub didn't answer. Try again shortly. |
| `INTERNAL_ERROR` | 500 | Something went wrong on our side. |
| `INVALID_REQUEST` | 400 | The request isn't valid. |
| `INVALID_TOKEN` | 401 | The token is invalid, expired or revoked. |
| `LEGAL_TERMS_OUTDATED` | 409 | The terms changed since you opened this page. Reload it to read the new version. |
| `MACHINE_NOT_OWNED` | 403 | Only a machine with an owner can do this. |
| `METHOD_NOT_ALLOWED` | 405 | That method isn't allowed here. |
| `NO_ACTIVE_WORKSPACE` | 409 | Pick a workspace first. |
| `NOT_A_MEMBER` | 403 | You aren't a member of that workspace. |
| `NOT_FOUND` | 404 | Not found. |
| `PAYLOAD_TOO_LARGE` | 413 | The request body is too large. |
| `PRICE_EXISTS` | 409 | That rate already has a price from that day. Remove it first to correct it. |
| `PRICE_INVALID` | 400 | Check the price and date. |
| `PROVIDER_EXISTS` | 409 | There's already a provider with that id. |
| `PROVIDER_ID_INVALID` | 400 | Use lowercase letters, numbers and dashes for the id. |
| `PROVIDER_INVALID` | 400 | Fill in a name, summary and labels, and use https:// links. |
| `PROVIDER_NOT_CONNECTED` | 404 | That provider isn't connected. |
| `PROVIDER_ORGANIZATION_MISMATCH` | 400 | That token is for another GitHub organization. Make one for the organization this workspace is installed on. |
| `PROVIDER_PREFIX_TAKEN` | 409 | Another provider, or GitHub's own runners, already use labels like that. |
| `PROVIDER_PREFIXES_INVALID` | 400 | Add at least one label prefix, three or more characters each. |
| `PROVIDER_TOKEN_REJECTED` | 400 | The provider didn't accept that token. Check it and its scope. |
| `PROVIDER_UNKNOWN` | 400 | There's no provider with that id. |
| `PROVIDER_UNREACHABLE` | 502 | The provider's API didn't answer. Try again shortly. |
| `PROVIDER_WORKSPACE_UNCLEAR` | 409 | Name the workspace to connect it to. |
| `RATE_LIMITED` | 429 | Too many requests. Try again shortly. |
| `RUNNER_ORDER_CHANGED` | 409 | The runner order changed since you read it. Read it again, then make your change. |
| `RUNNER_ORDER_INVALID` | 400 | The runner order isn't valid. |
| `TELEMETRY_ENDPOINT_INVALID` | 400 | Use an https URL on the internet, like https://api.honeycomb.io. |
| `TELEMETRY_HEADER_MISSING` | 400 | Enter a value for each header. |
| `TELEMETRY_NOT_CONFIGURED` | 404 | Telemetry isn't set up for this workspace. |
| `TOKEN_STORAGE_UNAVAILABLE` | 503 | Saving provider tokens isn't set up on this server yet. |
| `UNAUTHENTICATED` | 401 | Sign in first. |
| `USER_HAS_SHARED_WORKSPACES` | 409 | The user is in workspaces with other members. Remove them from those first. |
| `WEBHOOK_ENQUEUE_FAILED` | 503 | The delivery couldn't be queued. Redeliver it from the App's settings. |
| `WEBHOOK_SECRET_NOT_CONFIGURED` | 500 | The webhook secret for this App isn't set up on this server. |
| `WEBHOOK_SIGNATURE_INVALID` | 401 | The webhook signature is missing or doesn't match the App's secret. |
| `WEBSOCKET_REQUIRED` | 426 | Connect with a WebSocket upgrade. |
| `WORKFLOW_NOT_DISPATCHABLE` | 409 | The workflow can't be started on demand. Add `workflow_dispatch` to its `on:` triggers on the default branch, then try again. |
| `WORKSPACE_REQUIRED` | 409 | This token reads more than one workspace. Name one with the x-relayrunner-workspace header. |
