OpenRouter Common Errors Overview OpenRouter returns standard HTTP error codes plus OpenRouter-specific error codes in the response body. The most common: 401 (auth), 402 (credits), 429 (rate limit), 400 (bad request), and 5xx (upstream provider errors). Each error includes a field and a human-readable . This skill covers every common error, its root cause, and the exact fix. Prerequisites - An OpenRouter API key ( ) exported as — see the skill for setup - and to run the Diagnostic Script - Python 3.8+ with the OpenAI SDK for the categorized error handler; Node.js 18+ for the TypeScript typed…