> Documentation index: https://docs.dev.repp.co.il/llms.txt - fetch it to find every page of these docs.

# Errors

**Errors**

| Status | Code | Meaning |
| --- | --- | --- |
| 401 | `missing_key` | The endpoint needs a key and no Authorization header came. |
| 401 | `bad_key` | The key is not one of ours, was revoked, or its account was closed or blocked. |
| 403 | `not_a_business` | The endpoint is for businesses and the key's account has none. |
| 400 | `bad_parameter` | A parameter is not one the endpoint accepts. The message names it. |
| 400 | `bad_range` | `to` is before `from`, or the range is longer than 124 days. |
| 404 | `not_found` | No such endpoint, or no such item for this caller. |
| 405 | `method_not_allowed` | The address does not take this method. The Allow header lists the ones it takes. |
| 429 | `too_many_requests` | Over the rate limit. Wait the seconds in `Retry-After` (60) and go on. |
| 500 | `server_error` | Something failed on our side. Try again shortly. |
| 403 | `read_only_key` | The key only reads. Actions need a key made with "read and actions" (or an app signed in with the scope repp.write). |
| 403 | `not_a_trainer` | The endpoint is for trainers and the key's account has no trainer profile. |
| 400 | `bad_body` | The request body is not a JSON object (or a field in it is missing or malformed). The message names it. |
| 409 | `action_refused` | The site's own rules refused the action; `reason` says which (for example class_not_available, already_offered, booking_not_available). |
| 409 | `no_place` | The business has no saved place yet: it is set once on the site ("העסק שלי"). |
| 409 | `idempotency_conflict` | The Idempotency-Key was already used by this key for a different action. |
| 429 | `too_many_actions` | The key ran 200 actions in the last 24 hours. Reads still work. |

`message` is a short line in Hebrew for people. Branch on `code`, never on `message`.
