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

# Errors and limits

> What a status means, what a reason_code tells you to do, and the limits on calls and sending.

Every tool result, over MCP or REST, carries a `status`. When the work did not complete, it also carries a `reason_code` and a `message` written for a person. Act on the code. Show the message.

## Statuses

| `status` | Meaning |
| - | - |
| `completed` | Done. |
| `queued` | Accepted and handed to the sending queue. Read the conversation or campaign again to see delivery. |
| `processing` | Still running, for example a draft being written. |
| `partially_completed` | Some items succeeded. Each item carries its own reason. |
| `action_required` | Refused. `reason_code` says why, `message` says what to do. |
| `rate_limited` | Wait `retry_after_seconds` and try once. Never retry in a loop. |
| `provider_unavailable` | LinkedIn or another dependency is down. Try later. |
| `failed_temporary` | Something failed on our side. It was logged. Try once in a minute. |
| `failed_permanent` | It cannot succeed. Do not retry. |

## Reason codes

| `reason_code` | Meaning |
| - | - |
| `validation_failed` | An argument is missing or malformed. `errors` lists the fields. |
| `not_found` | No such id in this project. |
| `insufficient_scope` | The key lacks the scope the endpoint needs. |
| `subscription_required` | The trial ended and there is no subscription. |
| `connection_not_provisioned`, `connection_revoked`, `workspace_membership_lost` | The key or connection is no longer valid. Create a new one. |
| `invalid_state_transition` | The object is not in a state that allows this change. |
| `campaign_not_startable` | The campaign cannot run or send yet. `message` says what is missing. |
| `capacity_limit_reached` | A plan limit is used up, for example the number of campaigns. |
| `contact_suppressed` | The lead is marked do-not-contact. |
| `account_not_sendable` | The LinkedIn account is disconnected or paused. |
| `daily_limit_reached`, `weekly_limit_reached`, `account_throttled` | The LinkedIn account's sending budget is used up. Wait `retry_after_seconds`. |
| `circuit_open` | Sending from this account is paused after repeated failures. |
| `provider_rate_limited`, `provider_auth_failed`, `provider_permanent` | LinkedIn refused the call. |
| `cancelled` | The work was cancelled before it ran. |
| `unexpected_error` | Something failed on our side. It was logged. |

## HTTP codes

Over REST, the reason picks the code first, then the status.

| Code | When |
| - | - |
| `401` | The key is missing or expired |
| `402` | There is no active trial or subscription |
| `403` | `insufficient_scope`, or the key or connection was revoked or lost access to the project |
| `404` | `not_found` |
| `409` | Refused: `action_required`, `invalid_state_transition`, `failed_permanent` |
| `413` | Body over 64 KB |
| `415` | Body is not JSON |
| `422` | `validation_failed`, with `errors` per field |
| `429` | `rate_limited`, with `Retry-After` |
| `503` | `provider_unavailable` or `failed_temporary` |

## Rate limits

Each key or connection may make 120 calls per minute. Above that you get `rate_limited` with `retry_after_seconds`, and over REST a `429` with `Retry-After`.

Sending has its own limits, per LinkedIn account, set by the daily and weekly budgets shown in `list-linkedin-accounts`. A campaign can be run on demand once every 5 minutes.


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