diegosouzapw/OmniRoute · error

MODEL_001

MODEL_001

Error message

Model not found

What it means

MODEL_001 (404): the requested model id does not resolve to any provider/model registered in OmniRoute (typo, removed model, or provider not configured). Fired during model resolution before dispatch.

Solutions

  1. Check the model id against GET /v1/models
  2. Fix typos or use the provider-prefixed form (provider/model)
  3. Register the model or enable the provider that hosts it
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/shared/constants/errorCodes.ts:93 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/ddbe68a98cba3aba. Report an issue: GitHub.

Appendix: source

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

    message: "Rate limit exceeded",
    httpStatus: 429,
    category: "RATE_LIMIT",
  },
  RATE_002: {
    code: "RATE_002",
    message: "Daily budget exceeded",
    httpStatus: 429,
    category: "RATE_LIMIT",
  },
  RATE_003: {
    code: "RATE_003",
    message: "All accounts rate-limited",
    httpStatus: 503,
    category: "RATE_LIMIT",
  },

  // ── Model / Routing ──
  MODEL_001: { code: "MODEL_001", message: "Model not found", httpStatus: 404, category: "MODEL" },
  MODEL_002: {
    code: "MODEL_002",
    message: "Ambiguous model identifier",
    httpStatus: 400,
    category: "MODEL",
  },
  MODEL_003: {
    code: "MODEL_003",
    message: "Model temporarily unavailable",
    httpStatus: 503,
    category: "MODEL",
  },

  // ── Provider ──
  PROVIDER_001: {
    code: "PROVIDER_001",
    message: "Provider error",
    httpStatus: 502,

View on GitHub (pinned to a179ffed5b)