diegosouzapw/OmniRoute · error

COMBO_008

COMBO_008

Error message

Combo target violates its provider or model family invariant

What it means

COMBO_008 (400): a target inside the combo breaks an invariant — e.g. a provider-family combo containing a target from another provider, or a model-family combo mixing incompatible model families. Structural consistency check, not a schema issue.

Solutions

  1. Remove targets that break the provider/model family invariant
  2. Split the combo into per-family combos
  3. Use a general-purpose strategy that permits mixed targets
Defensive patterns

Strategy: validation

When it happens

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

Common situations: See trigger scenarios.


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

Appendix: source

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

    code: "COMBO_005",
    message: "Combo reference graph is invalid (cycle or excessive depth)",
    httpStatus: 400,
    category: "COMBO",
  },
  COMBO_006: {
    code: "COMBO_006",
    message: "This combo is managed by Quota Share and cannot be modified here",
    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",
  },

View on GitHub (pinned to a179ffed5b)