{
 "schema_version": "astranl.core.errors/1.0",
 "generated_at": "2026-11-24T14:15:06Z",
 "envelope": {
  "shape": {
   "error": {
    "code": "stable lower_snake word",
    "message": "plain text, no internal names",
    "retryable": "boolean",
    "field": "optional, the wrong field",
    "do_next": "optional, what to change",
    "nothing_done": "true when nothing happened"
   }
  },
  "where": "MCP: the tool result text with isError true. HTTPS /api/core/v1: the response body, with the HTTP status below.",
  "source": "one envelope for every public tool (decision 939 AUD1); codes never change meaning, new codes are only added"
 },
 "codes": [
  {
   "code": "budget_exceeded",
   "http_status": 503,
   "retryable": true,
   "meaning": "a spending budget is reached; retry later"
  },
  {
   "code": "busy",
   "http_status": 503,
   "retryable": true,
   "meaning": "the service is busy; retry"
  },
  {
   "code": "conflict",
   "http_status": 409,
   "retryable": false,
   "meaning": "the request conflicts with the current state"
  },
  {
   "code": "daily_live_budget_spent",
   "http_status": 503,
   "retryable": true,
   "meaning": "the daily live read budget is spent; retry tomorrow"
  },
  {
   "code": "estimate_unavailable",
   "http_status": 503,
   "retryable": true,
   "meaning": "the estimator did not answer; nothing was estimated; retry"
  },
  {
   "code": "forbidden",
   "http_status": 403,
   "retryable": false,
   "meaning": "the credential does not allow this"
  },
  {
   "code": "global_limit",
   "http_status": 429,
   "retryable": true,
   "meaning": "a global limit is reached; wait and retry"
  },
  {
   "code": "internal_error",
   "http_status": 500,
   "retryable": true,
   "meaning": "the tool could not answer; nothing was done; retry"
  },
  {
   "code": "invalid_argument",
   "http_status": 422,
   "retryable": false,
   "meaning": "an argument value is not accepted"
  },
  {
   "code": "invalid_request",
   "http_status": 400,
   "retryable": false,
   "meaning": "the request is not a valid call"
  },
  {
   "code": "not_found",
   "http_status": 404,
   "retryable": false,
   "meaning": "the reference or id is unknown"
  },
  {
   "code": "parse",
   "http_status": 400,
   "retryable": false,
   "meaning": "the body is not JSON"
  },
  {
   "code": "rate_limited",
   "http_status": 429,
   "retryable": true,
   "meaning": "too many requests; wait and retry"
  },
  {
   "code": "source_limit",
   "http_status": 429,
   "retryable": true,
   "meaning": "an upstream source limit is reached"
  },
  {
   "code": "source_unavailable",
   "http_status": 503,
   "retryable": true,
   "meaning": "an upstream source or the tool door did not answer; retry"
  },
  {
   "code": "timeout",
   "http_status": 504,
   "retryable": true,
   "meaning": "the call took too long; retry"
  },
  {
   "code": "too_large",
   "http_status": 413,
   "retryable": false,
   "meaning": "the body is too large"
  },
  {
   "code": "tool_renamed",
   "http_status": 404,
   "retryable": false,
   "meaning": "the tool has a new name; the error names it"
  },
  {
   "code": "unauthorized",
   "http_status": 401,
   "retryable": false,
   "meaning": "a credential is needed (never for the core tools)"
  },
  {
   "code": "unavailable",
   "http_status": 503,
   "retryable": true,
   "meaning": "the function is unavailable; retry later"
  },
  {
   "code": "unknown_id",
   "http_status": 404,
   "retryable": false,
   "meaning": "the id is unknown"
  },
  {
   "code": "unknown_tool",
   "http_status": 404,
   "retryable": false,
   "meaning": "the tool is not in this door; error.accepted_tools lists the ones that are"
  },
  {
   "code": "validation",
   "http_status": 422,
   "retryable": false,
   "meaning": "a field is wrong or unknown; error.field names it, error.accepted_fields and error.example_arguments show the shape"
  }
 ],
 "not_errors": [
  {
   "status": "payment_required",
   "where": "astranl_contractor_check_nl with a kvk_number",
   "meaning": "a KvK register read is paid; nothing was read and nothing was charged; the VAT and sanctions checks without a KvK number are free"
  },
  {
   "status": "SIGNED_PENDING_INCLUSION",
   "where": "astranl_verify_receipt on a fresh receipt",
   "meaning": "signed (L2); Merkle inclusion (L3, PASS) follows with the next signed tree head"
  },
  {
   "status": "not_checked",
   "where": "contractor check parts without the needed input",
   "meaning": "that part was not checked; open_questions says why"
  }
 ]
}