diegosouzapw/OmniRoute · error

INTERNAL_001

INTERNAL_001

Error message

Internal server error

What it means

INTERNAL_001 (500): unhandled exception inside OmniRoute — a bug or unexpected runtime state escaped the handler's guards. The response body is sanitized (no stack traces) per the error-sanitization policy.

Solutions

  1. Check server logs with the returned requestId for the real stack
  2. Retry once — rare transient states can trigger this
  3. Report the issue with requestId and request shape if reproducible
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/shared/constants/errorCodes.ts:199 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/8ba50933de9e4a87. Report an issue: GitHub.

Appendix: source

Thrown at src/shared/constants/errorCodes.ts:199

    httpStatus: 409,
    category: "COMBO",
  },
  COMBO_007: {
    code: "COMBO_007",
    message: "Combo not found",
    httpStatus: 404,
    category: "COMBO",
  },
  COMBO_008: {
    code: "COMBO_008",
    message: "Combo target violates its provider or model family invariant",
    httpStatus: 400,
    category: "COMBO",
  },

  // ── Internal ──
  INTERNAL_001: {
    code: "INTERNAL_001",
    message: "Internal server error",
    httpStatus: 500,
    category: "INTERNAL",
  },
  INTERNAL_002: {
    code: "INTERNAL_002",
    message: "Database error",
    httpStatus: 500,
    category: "INTERNAL",
  },
  INTERNAL_003: {
    code: "INTERNAL_003",
    message: "Circuit breaker open",
    httpStatus: 503,
    category: "INTERNAL",
  },
};

View on GitHub (pinned to a179ffed5b)