diegosouzapw/OmniRoute · error
VALID_001
VALID_001
Error message
Invalid request body
What it means
Canonical error-code entry VALID_001 (HTTP 400, VALIDATION category): the request body failed schema validation or could not be parsed as the expected shape. Raised by the Zod validation layer before any handler/business logic runs.
Solutions
- Send a JSON body with the documented request schema
- Check Content-Type is application/json
- Validate payload against the endpoint's Zod/OpenAPI schema
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/shared/constants/errorCodes.ts:129 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/42d278bf2c88c851.
Report an issue: GitHub.
Appendix: source
Thrown at src/shared/constants/errorCodes.ts:129
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 ──
VALID_001: {
code: "VALID_001",
message: "Invalid request body",
httpStatus: 400,
category: "VALIDATION",
},
VALID_002: {
code: "VALID_002",
message: "Missing required field",
httpStatus: 400,
category: "VALIDATION",
},
VALID_003: {
code: "VALID_003",
message: "Input sanitization blocked",
httpStatus: 400,
category: "VALIDATION",
},
// ── Combos (T-22.b — 400-shape standardization for /api/combos/{id}) ──View on GitHub (pinned to a179ffed5b)