diegosouzapw/OmniRoute · error
PROVIDER_001
PROVIDER_001
Error message
Provider error
What it means
PROVIDER_001 (502): the upstream provider returned an unexpected/garbage response or a 5xx that could not be classified more precisely. Generic catch-all for upstream-side failures during executor dispatch.
Solutions
- Retry — many provider 5xx blips are transient
- Inspect the sanitized upstream detail in the error body
- Check the provider's status page for ongoing incidents
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/shared/constants/errorCodes.ts:109 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/112c4ea3d1183cc5.
Report an issue: GitHub.
Appendix: source
Thrown at src/shared/constants/errorCodes.ts:109
// ── 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,
category: "PROVIDER",
},
PROVIDER_002: {
code: "PROVIDER_002",
message: "Provider timeout",
httpStatus: 504,
category: "PROVIDER",
},
PROVIDER_003: {
code: "PROVIDER_003",
message: "Provider not configured",
httpStatus: 400,
category: "PROVIDER",
},
// ── Validation ──View on GitHub (pinned to a179ffed5b)