# Errors

Decide by the code, never by the message: messages change, codes do not.

| Code | Meaning |
| --- | --- |
| [`denied`](https://docs.cmdop.ai/reference/errors/denied.md) | The grant or the machine's ceiling does not allow it. |
| [`unauthorized`](https://docs.cmdop.ai/reference/errors/unauthorized.md) | No live token of this contour came with the call, or its kind may not use this door. |
| [`bad_args`](https://docs.cmdop.ai/reference/errors/bad_args.md) | The arguments do not match the tool's schema. |
| [`not_found`](https://docs.cmdop.ai/reference/errors/not_found.md) | The path or the thing named does not exist. |
| [`hash_required`](https://docs.cmdop.ai/reference/errors/hash_required.md) | `fs_write` would replace an existing file and no `expect_sha256` came with it: get its SHA-256 with `fs_stat` and `hash=true` and pass it. |
| [`needs_presence`](https://docs.cmdop.ai/reference/errors/needs_presence.md) | The change raises what agents may do; only a person present at the machine can allow it. |
| [`paused`](https://docs.cmdop.ai/reference/errors/paused.md) | The owner paused this machine (`control.pause`): no tool runs until it is resumed there. |
| [`busy`](https://docs.cmdop.ai/reference/errors/busy.md) | The machine runs too many calls already. |
| [`rate_limited`](https://docs.cmdop.ai/reference/errors/rate_limited.md) | Too many input actions this minute. |
| [`timed_out`](https://docs.cmdop.ai/reference/errors/timed_out.md) | No answer within the tool's time. |
| [`too_large`](https://docs.cmdop.ai/reference/errors/too_large.md) | The call's arguments, or its result, are more than one message between the server and a machine may hold (16 MiB). |
| [`failed`](https://docs.cmdop.ai/reference/errors/failed.md) | The tool ran and failed. |
| [`app_not_allowed`](https://docs.cmdop.ai/reference/errors/app_not_allowed.md) | `control` is not allowed for this app on this machine. |
| [`display_gone`](https://docs.cmdop.ai/reference/errors/display_gone.md) | The display left (unplugged or resized) between capture and action. |
| [`element_gone`](https://docs.cmdop.ai/reference/errors/element_gone.md) | The element id is not in the tree any more. |
| [`lease_paused`](https://docs.cmdop.ai/reference/errors/lease_paused.md) | The owner paused control, or the lease was ended. |
| [`not_dispatched`](https://docs.cmdop.ai/reference/errors/not_dispatched.md) | The event may not have reached the OS; it is never replayed. |
| [`other`](https://docs.cmdop.ai/reference/errors/other.md) | Any failure that has no code of its own; read the message. |
| [`permission_missing`](https://docs.cmdop.ai/reference/errors/permission_missing.md) | The OS has not granted screen capture or input to the machine program. |
| [`screen_locked`](https://docs.cmdop.ai/reference/errors/screen_locked.md) | The screen is locked or asleep. |
| [`stale_capture`](https://docs.cmdop.ai/reference/errors/stale_capture.md) | A pixel action without a current capture of that display, or the display changed. |
| [`unknown_tool`](https://docs.cmdop.ai/reference/errors/unknown_tool.md) | This machine does not have the tool (an older program). |
