diegosouzapw/OmniRoute · error

COMBO_001

COMBO_001

Error message

Request body is not valid JSON

What it means

COMBO_001 (400): the /api/combos/{id} endpoint could not JSON.parse the request body — malformed JSON syntax (trailing commas, truncation, wrong content-type). Standardized 400-shape for combo management routes.

Solutions

  1. Send syntactically valid JSON with application/json content-type
  2. Lint the payload before sending
  3. Do not send form-encoded or text bodies to combo endpoints
Defensive patterns

Strategy: validation

When it happens

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

Appendix: source

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

    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",
  },
  COMBO_003: {
    code: "COMBO_003",
    message: "Composite tier configuration is invalid",
    httpStatus: 400,
    category: "COMBO",
  },
  COMBO_004: {
    code: "COMBO_004",

View on GitHub (pinned to a179ffed5b)