# Errors

Errors are JSON with a human-readable message:

```json
{"error":"not found or expired"}
```

| Status | Meaning |
|---|---|
| `400` | Bad input: a name, a `ttl`, a JSON body or an interrupted upload |
| `401` | Missing or unknown key. A private link without proof also returns `401` with `locked: true` |
| `402` | The hosted service only: your plan does not include this feature. See [Plans](concepts-plans.md) |
| `403` | A wrong signup code, an admin-only call, a public link while public links are off, or a cross-origin request to MCP |
| `404` | Not found, expired, revoked or burned |
| `405` | Wrong HTTP method. The `Allow` header lists the right ones |
| `409` | That email already has a key, you hold your only key or 20 keys, or a link limit was reached |
| `413` | File too large, or the upload would exceed your quota (on the hosted service the answer also names your plan) |
| `429` | Too many registrations, or too many wrong link passphrases, from this address |
| `503` | The server is busy hashing passphrases; try again in a moment |

A `404` never says whether a file exists for someone else: files are scoped to the key that owns them.

## Handling errors in scripts

```sh
code=$(curl -s -o out.json -w '%{http_code}' -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/files)
[ "$code" = 200 ] || { cat out.json >&2; exit 1; }
```

The CLI shows the server's text as is and exits `1`. See [Scripting and exit codes](cli-scripting.md).
