EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...
    • Classify an error message into a diagnostic error category.

      Maps EP MCP Server v1.3.10 structured error codes and generic HTTP/network errors into one of six broad categories used for logging and retry decisions:

      Returned categories (priority order):

      1. INTERNAL_ERROR — EP MCP INTERNAL_ERROR (catch-all for DNS, TLS, unclassified upstream failures)
      2. SERVER_ERROR — EP MCP UPSTREAM_500/UPSTREAM_503/SERVER_ERROR, or gateway 5xx patterns
      3. TIMEOUT — EP MCP UPSTREAM_TIMEOUT, or generic "timeout" strings
      4. RATE_LIMIT — EP MCP RATE_LIMITED, HTTP 429, or "rate limit"/"too many requests" strings
      5. NOT_FOUND — EP MCP UPSTREAM_404, or generic "404" strings
      6. UNKNOWN — everything else

      Parameters

      • message: string

        Raw error message

      Returns string

      Diagnostic error category string