diegosouzapw/OmniRoute · error

RATE_002

RATE_002

Error message

Daily budget exceeded

What it means

Canonical error-code entry RATE_002 (HTTP 429, RATE_LIMIT category): the configured daily spend budget has been consumed, so further requests are rejected until the budget window resets. Distinct from RATE_001 (per-request rate limit) — this is a cumulative, operator-configured cap, not burst throttling.

Solutions

  1. Raise or disable the daily budget in settings
  2. Wait for the UTC daily window to reset
  3. Audit call logs for unexpected token consumption
Defensive patterns

Strategy: fallback

When it happens

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

Appendix: source

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

    category: "PROXY",
  },
  PROXY_002: { code: "PROXY_002", message: "Proxy timeout", httpStatus: 504, category: "PROXY" },
  PROXY_003: {
    code: "PROXY_003",
    message: "All proxies exhausted",
    httpStatus: 503,
    category: "PROXY",
  },

  // ── Rate Limiting ──
  RATE_001: {
    code: "RATE_001",
    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",

View on GitHub (pinned to a179ffed5b)