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

# Errors

> Error responses and their stable codes.

Errors use standard HTTP status codes and a JSON body with a stable, machine-readable `code`. Match on `code`; the API never returns translated prose.

```json theme={null}
{
  "error": {
    "code": "invalid_input",
    "issues": [{ "path": "interval_seconds", "message": "Choose a supported check frequency." }]
  }
}
```

`issues` is present for validation errors and lists each failing field by its path.

## Status codes

| Status | Codes | Meaning |
| - | - | - |
| `400` | `invalid_json`, `invalid_version` | The body isn't valid JSON, or the `Hebeat-Version` header isn't a served version. |
| `401` | `unauthenticated` | Missing, unknown, revoked or expired API key. |
| `402` | `workspace_restricted` | The workspace needs an active plan or is over its plan's limits. |
| `403` | `insufficient_scope` | The key lacks the endpoint's scope. |
| `403` | `workspace_blocked` | The workspace is blocked. |
| `403` | `plan_feature_unavailable`, `plan_limit_exceeded` | The plan doesn't include the feature, or the change would exceed a plan limit. |
| `404` | `not_found` | The resource doesn't exist or belongs to another workspace. |
| `409` | `conflict` and resource-specific codes | The resource changed since you read it, or is in a state that doesn't allow the action (for example, resolving an incident that is already resolved). |
| `413` | `payload_too_large` | The request body is too large. |
| `422` | `invalid_input` | The input doesn't match the contract. See `issues`. |
| `429` | `rate_limited` | A rate limit was reached. Wait for the `Retry-After` seconds. |
| `503` | `encryption_unavailable`, `checks_unavailable`, `discord_unavailable`, `webhook_unavailable`, `history_unavailable` | A dependency isn't available. Retry later. `history_unavailable` means the per-check history (`GET /monitors/{id}/checks`) is temporarily unavailable; metrics and uptime keep working. |
| `500` | `internal_error` | Something went wrong on our side. |

A resource in another workspace always answers `404`, never `403`, so keys can't discover what other workspaces contain.

The [MCP server](https://hebeat.com/docs/ai/introduction.md) reports failures as tool errors with the same codes.


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