> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlurk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent skill: errors

> The agent skill's reference for errors: each code, and whether to retry, fix the request or ask a person.

Every error has the same body:

```json theme={null}
{ "error": { "status": 422, "code": "validation_failed", "message": "…", "param": "event", "request_id": "req_…", "doc_url": "…" } }
```

`message` is a sentence you can show a person. `param` names the field when there is one. Quote `request_id` when asking for help.

| Status | Code | What to do |
| - | - | - |
| 400 | `invalid_json` | The body is not JSON. Fix the request. |
| 401 | `invalid_key` | For a key-based connection, check the selected project and key with an owner or admin. For a signed-in connection, sign in again or reconnect. |
| 403 | `forbidden` | This call is not allowed. If a signed-in connection asks for more access, have the person authorize it. Otherwise tell the person what was refused. |
| 403 | `approval_required` | A person must act. With a key, if the operation is on the Proposable list ([`references/rules.md`](https://docs.getlurk.com/agent-skill/rules)), make a proposal (`proposals.create`, or `lurk.apply` over MCP) and give the person its `url`. Otherwise ask an owner or admin to do it in the dashboard. For a signed-in assistant, follow `next_step`, which may give a dashboard link. |
| 404 | `not_found` | No user, rule, unit or project with that ID or key. Check the name against what you read. |
| 409 | `idempotency_conflict` | The same idempotency key was used with a different body. Use a new key for a different request. |
| 409 | `conflict` | Nothing was changed. The thing it names is in a state that does not allow this (such as a person merged into another). Do what the message says, then send it again. |
| 409 | `unblock_clock_reversed` | Try again in a moment, or advance the clock if this is a staging project. |
| 409 | `insufficient_balance` | A spend is for more than the person holds above the unit's floor. Nothing was taken; tell the person or spend less. |
| 409 | `reference_used` | That `reference` was already used on this unit, so the spend is a repeat of an earlier one. Nothing was taken; do not retry with a new reference unless it really is a different redemption. |
| 422 | `validation_failed` | A field is wrong; `param` says which. Fix it and send again. |
| 429 | `rate_limited` | When a wait is supplied, wait that many seconds: `Retry-After` on an HTTP 429, including on the MCP endpoint, or `_meta["getlurk.com/retry-after-seconds"]` on a rate-limited MCP tool result. Then retry with the same idempotency key. |
| 500 | `internal` | Retry a few times with the same key and a growing delay, then stop and report the `request_id`. |
| 503 | `unavailable` | Something this call needs is briefly down, or not set up on this server. Retry a few times with the same key, then tell the person if it stays unavailable. |

Retry a connection error, `408`, `429` and `5xx`, never the others, and always with the same idempotency key.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.