Error codes
Retries
5xxresponses are retry-safe — we return them specifically for transient conditions (database timeouts, upstream provider outages).4xxresponses are not retry-safe; fix the request and resubmit.- All POST endpoints are idempotent over the same payload: retrying the same
POST /leadswith the same body within a short window will not create duplicates.
MCP errors
MCP uses JSON-RPC 2.0 error codes, mapped fromServiceError:
The
error.data.httpStatus field on JSON-RPC errors carries the matching HTTP status for tools that round-trip through a REST proxy.