diegosouzapw/OmniRoute · error

RATE_001

RATE_001

Error message

Rate limit exceeded

What it means

RATE_001 (429): the request exceeded a rate-limit threshold (per key, per connection, or per instance) enforced by OmniRoute or relayed from the upstream. The response carries retry guidance when the upstream supplies it.

Solutions

  1. Honor the Retry-After header before resending
  2. Reduce request concurrency or use a combo with lower-per-target pressure
  3. Wait for the limit window to reset or raise the configured limit
Defensive patterns

Strategy: retry

When it happens

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

Appendix: source

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

  // ── Proxy ──
  PROXY_001: {
    code: "PROXY_001",
    message: "Proxy connection failed",
    httpStatus: 502,
    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 ──

View on GitHub (pinned to a179ffed5b)