cosmic-mcp

ERROR CODES

COSMOS error codes

Every COSMOS error carries one of these codes (problem+json error_code). Retryable errors can be tried again after a pause; a 429 says when.

CodeNameHTTPRetryMeaning
COSMOS-AUTH-0001unauthorized401noNo token, a bad token, or an expired one. Sign in again.
COSMOS-AUTHZ-0001forbidden_scope403noThe token does not carry the scope this tool needs, or the tenant is not yours.
COSMOS-POLICY-0001policy_blocked403noA policy rule refused the call (blocked domain, denied tool, evaluate off).
COSMOS-POLICY-0002needs_confirmation202noA person must approve this call. Detail has the confirmation id and the page to approve it.
COSMOS-BROWSER-0001ref_stale409noThe element ref came from an older snapshot. Take a new browser.snapshot.
COSMOS-BROWSER-0002bridge_offline503yesNo browser bridge is online for this user.
COSMOS-RATE-0001rate_limited429yesToo many actions in a short time. Wait for retry_after_ms.
COSMOS-LEG-0001leg_unavailable503yesThe backend leg is down, its breaker is open, or it is at capacity.
COSMOS-VALIDATION-0001invalid_argument400noThe input failed validation. The message names the field.
COSMOS-VALIDATION-0002not_found404noNo such tool, job or resource for this caller.
COSMOS-VALIDATION-0003conflict409noAn idempotency key was reused with different arguments, or a duplicate.
COSMOS-LEG-0002timeout504yesThe call ran past its deadline.
COSMOS-CALL-0001cancelled499noThe call was cancelled.
COSMOS-LEG-0003upstream_error502yesA leg or a third party answered with an error.
COSMOS-BROWSER-0003session_stopped410noThe user pressed Stop or the browser session expired.
COSMOS-CONFIG-0001not_configured503noA credential or endpoint is not set yet (amber in STATUS).
COSMOS-INTERNAL-0001internal500noA bug. It has been logged with the request id.