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):
INTERNAL_ERROR — EP MCP INTERNAL_ERROR (catch-all for DNS, TLS, unclassified upstream failures)
SERVER_ERROR — EP MCP UPSTREAM_500/UPSTREAM_503/SERVER_ERROR, or gateway 5xx patterns
TIMEOUT — EP MCP UPSTREAM_TIMEOUT, or generic "timeout" strings
RATE_LIMIT — EP MCP RATE_LIMITED, HTTP 429, or "rate limit"/"too many requests" strings
NOT_FOUND — EP MCP UPSTREAM_404, or generic "404" strings
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):
INTERNAL_ERROR— EP MCPINTERNAL_ERROR(catch-all for DNS, TLS, unclassified upstream failures)SERVER_ERROR— EP MCPUPSTREAM_500/UPSTREAM_503/SERVER_ERROR, or gateway 5xx patternsTIMEOUT— EP MCPUPSTREAM_TIMEOUT, or generic "timeout" stringsRATE_LIMIT— EP MCPRATE_LIMITED, HTTP 429, or "rate limit"/"too many requests" stringsNOT_FOUND— EP MCPUPSTREAM_404, or generic "404" stringsUNKNOWN— everything else