Developers  /  Authentication  /  Errors
REFERENCE

Error reference

Klaro has no single error format. Klaro MCP tools, the OAuth sign-in endpoints and Klaro’s own services each use their own, and error codes are defined per service rather than in one catalogue. This page covers the ones a developer using Klaro MCP can meet.

Status codes

400 invalid request · 401 not signed in, or the token is not valid · 403 not allowed · 404 not found · 409 conflict · 429 rate limited · 5xx server error.

Error formats

A Klaro MCP tool reports a failure as a tool error whose text is a small JSON object: error (a stable code), message (a sentence that is safe to show the user) and retryable (true only when trying the same call again later can work). Codes include NOT_SIGNED_IN, FORBIDDEN, NOT_FOUND, INVALID_INPUT, CONFLICT, RATE_LIMITED, RECONNECT_REQUIRED, SERVICE_SLOW, SERVICE_DOWN, NOT_CONFIGURED, TOOL_DISABLED, APP_NOT_INSTALLED, PREVIEW_NOT_FOUND, PREVIEW_EXPIRED, ALREADY_IN_PROGRESS, UNCERTAIN_RESULT and INTERNAL_ERROR. UNCERTAIN_RESULT means a change was sent but no clear answer came back, so check before you try again.

The OAuth endpoints use the standard error and error_description fields. Klaro’s own services usually answer with an envelope of success, errorCode, message, messageKey and errors, but some services and the gateway use other shapes, so do not rely on one format.

Access denials

A Klaro MCP server refuses a token in its WWW-Authenticate header. 401 invalid_token means the token is missing, expired or was issued for a different Klaro app. 403 insufficient_scope means the person did not allow that app. For both, connect again. 403 access_denied means the organisation has not allowed outside AI tools, or not this tool; only Klaro can change that during the preview.