Errors, limits and deliberate boundaries
In this lesson you will learn what each error from the API and MCP server means, which ones your code must never retry, and the limits Cehpoint built in on purpose.
Errors are instructions
A good integration treats an error as a sentence addressed to it. Cehpoint Agentic SOC returns JSON with an error field that says, in plain words, what went wrong and what to do. Your job is to route each status to the right behaviour: fix the request, wait, or stop and tell a person.
The status codes
| Status | What it means | What your code should do |
|---|---|---|
| 400 | The request is not valid. Examples: a note longer than 2,000 characters, "Choose mute or snooze.", an address that is not public, or an action the alert does not offer. | Fix the request. Do not retry it unchanged. |
| 401 | Missing, unknown or revoked credential, or a skill token used from another device. | Stop. Tell the person; a key may need replacing. |
402 plan_inactive |
The free period or licence has ended (or access is paused). | Stop. Tell the person to contact Cehpoint. There is no online payment. |
402 needs_business |
API access is not part of this account's current access. | Stop. Tell the person to contact Cehpoint to add it. |
| 403 | A read-only key was used for an act call, or a strong action was attempted with a key not allowed strong actions, or a partner key was used on a client endpoint. | Stop. Explain; the person can approve in the console or decide on a different key. |
| 404 | No such object in this account. An id from another account also returns 404. | Check the id. Do not probe other ids. |
| 409 | The request conflicts with a protection rule, for example blocking a trusted address, a Cehpoint address, a Cloudflare edge address or the address of a live SSH session; or the device is no longer connected. | Stop. Read the message to the person; it explains why. |
| 429 | More than 120 requests a minute for this credential. | Wait, then continue more slowly. |
Two of these need extra care.
402 is never solved by retrying
When access has ended, the service refuses everything with 402 and the code plan_inactive. The live guide for agents is explicit: tell the person to contact Cehpoint, and do not retry. Access is set by Cehpoint after a conversation and payment by invoice; no API call can change it, and prices or agreed terms are never part of an API answer.
409 is a safety net working
A 409 on a block means the service protected you from cutting off something that must stay reachable. The rules behind it:
- addresses the account marked as trusted are never blocked;
- Cehpoint's own addresses are never blocked;
- Cloudflare edge addresses are never blocked on any path (automatic, dashboard, API, MCP, partner or staff), because one edge address carries many real visitors, perhaps including your own site's traffic. Block the visitor's real address instead;
- the address of someone signed in over SSH right now is never blocked;
- addresses seen in a server's first 15 minutes after install are treated as yours (they stay protected until 30 days after they were last seen).
The error message names the reason. An agent should pass it on, not look for a way round it.
Never retry 401, 402 or 403
These three mean "a person must decide". Retrying wastes your rate limit, fills logs, and for 401 may look like an attack. The guide for AI agents lists this as a rule: never retry on 401, 402 or 403; report the message to the person.
Handling 429 politely
The limit is 120 requests a minute per credential, for client, skill and partner credentials alike. A simple pattern:
# Pseudocode for any HTTP client
if status == 429:
wait 60 seconds
continue with the next request, more slowly
Better still, design so you rarely hit the limit: start from GET /v1/overview (or the MCP tool account_overview), which already contains devices, open alerts by severity, the most urgent alerts and suggested next steps, instead of fetching every object one by one. Use pagination (limit and offset) on alerts rather than fetching everything repeatedly.
MCP errors look different
Over MCP, errors arrive in two shapes, following the MCP specification:
- Protocol errors are JSON-RPC errors. For example, an unknown tool name returns code
-32602with a message listing the available tools and "Start with account_overview."; a malformed message returns-32600; an unknown method returns-32601. - Tool errors come back as a normal result with
isError: trueand a sentence saying what to do, for example "This API key is read-only; create a key with the act scope to use run_check."
The HTTP-level errors still apply on /mcp: no or unknown key gives 401, ended access gives 402, more than 120 requests a minute gives 429.
Deliberate limits
Some things are not possible through any interface, by design:
- No interface runs an arbitrary command on a device. Devices carry out only a fixed list of named actions built into the agent, and only when an alert offers them or the account blocks an address.
- Prices and agreed terms are never part of an API answer.
- There is no online payment; access is set by Cehpoint after payment by invoice.
- Times in API answers are UTC in ISO 8601 format; the console shows UK time.
Knowing these saves you from building features that can never work, and it is part of why the SOC is safe to hand to an agent.
Summary
- 401, 402 and 403 mean stop and tell a person; never retry them.
- 402
plan_inactiveandneeds_businessare resolved only by talking to Cehpoint. - 409 is a protection rule; read the reason to the person.
- 429 means wait; design with the overview and pagination to avoid it.
- Over MCP, look for JSON-RPC errors and for results with
isError: true.
Sources
- Cehpoint developer reference: https://www.cehpoint.co.uk/docs/soc/developers
- Cehpoint guide for AI agents: https://www.cehpoint.co.uk/docs/soc/ai-agents
- MCP specification, Tools (error handling): https://modelcontextprotocol.io/specification/2025-06-18/server/tools