### Errors

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

View as Markdown

For AI agents

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

\{

"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 passes the message and the code to your agent.

### Codes

Section titled “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. |

[View as Markdown](https://relayrunner.dev/docs/reference/errors.md)

[For AI agents](https://relayrunner.dev/docs/reference/errors.txt)

[Section titled “Codes”](https://relayrunner.dev/docs/reference/errors#codes)

[MCP server](https://relayrunner.dev/docs/reference/mcp)