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

# MCP error reference

> Every HTTP status, JSON-RPC error and tool error the AiLunaPro MCP server returns, with the fix for each.

Errors come at three levels. Your client usually shows only a short message; this page tells you what is behind it.

## HTTP errors

Returned before the MCP request is processed. The body is JSON with `error` and `code`.

| Status | `code` | Message | Meaning | What to do |
| - | - | - | - | - |
| `401` | `UNAUTHORIZED` | Invalid or revoked MCP key | `Authorization` header missing, key mistyped, or key revoked | Check `Bearer ` and the key; create a new key |
| `404` | `NOT_FOUND` | Not found | MCP is not enabled for your organisation | Contact support to request access |
| `405` | `METHOD_NOT_ALLOWED` | Method not allowed | The request was a `GET` or `DELETE` | Use a client that supports Streamable HTTP; it sends `POST` |
| `413` | `BODY_TOO_LARGE` | Request body too large | Request larger than 64 KiB | Send a shorter request |
| `500` | `INTERNAL_ERROR` | Authorization check failed | Temporary problem checking the key | Retry in a minute; contact support if it persists |
| `503` | `FIRESTORE_UNAVAILABLE` | Service unavailable | Temporary service problem | Retry in a few minutes |

## JSON-RPC errors

Returned with HTTP `200` (or `400` for malformed requests), in the `error` field of the JSON-RPC response.

| Code | Message | `data.code` | Meaning | What to do |
| - | - | - | - | - |
| `-32700` | Parse error | — | The body is not valid JSON | Fix the request body |
| `-32600` | Invalid Request | — | Not a JSON-RPC 2.0 request, a batch array, or an invalid `id` | Send one JSON-RPC 2.0 object per request |
| `-32601` | Method not found | — | Unsupported method, for example `resources/list` | Use `initialize`, `ping`, `tools/list` or `tools/call` |
| `-32602` | Invalid params | — | `tools/call` without a tool `name` | Send `params.name` |
| `-32602` | Tool not available | `PROHIBITED`, `DESTRUCTIVE`, `OPERATIONAL_DISABLED`, `NOT_APPROVED`, `UNKNOWN_TOOL` | The tool does not exist or is never allowed | Use one of the [three tools](https://developers.ailunapro.com/developers/reference/tools/index.md) |
| `-32602` | Invalid arguments | `INVALID_ARGUMENTS` | Wrong argument type or format, or an argument the tool does not accept | Check the tool's input on its reference page |
| `-32000` | Daily MCP limit reached for this key | `RATE_LIMITED` | 500 tool calls today for this key | Wait for the next UTC day; see [Limits](https://developers.ailunapro.com/developers/reference/limits.md) |
| `-32603` | Internal error | — | Temporary problem while running the tool | Retry; contact support if it persists |

## Tool errors

A tool that runs but finds nothing returns a normal result with `isError: true`:

```json theme={null}
{
  "content": [{ "type": "text", "text": "No matching audit was found for your account." }],
  "isError": true
}
```

| Message | Meaning | What to do |
| - | - | - |
| No matching audit was found for your account. | No audit of yours matches: none exists yet, or the `draftId` is someone else's or does not exist | Complete an Audit Express, or check the `draftId` |

> [!NOTE]
>
> For privacy, an audit that belongs to someone else and an audit that does not exist return the same message.


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