diegosouzapw/OmniRoute · error

VALID_003

VALID_003

Error message

Input sanitization blocked

What it means

Canonical error-code entry VALID_003 (HTTP 400, VALIDATION category): the input-sanitization guardrail rejected the payload (e.g. prompt-injection or unsafe-content patterns detected), blocking the request before it reaches the provider. Deliberate security refusal, not a parsing failure.

Solutions

  1. Remove the flagged injection/unsafe patterns from the input
  2. Tune guardrail rules if the hit is a false positive
  3. Disable the specific guardrail only if the operator approves
Defensive patterns

Strategy: validation

When it happens

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

Appendix: source

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

    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}) ──
  COMBO_001: {
    code: "COMBO_001",
    message: "Request body is not valid JSON",
    httpStatus: 400,
    category: "COMBO",
  },
  COMBO_002: {
    code: "COMBO_002",
    message: "One or more combo fields are invalid",
    httpStatus: 400,
    category: "COMBO",
  },

View on GitHub (pinned to a179ffed5b)