mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-04-10 05:00:17 +08:00
Previously, only 429, 408, and 5xx errors triggered failover to the next provider. Other 4xx errors (like 400) were considered non-retryable and caused immediate disconnection. This was problematic because different providers have different restrictions (e.g., "Do not use this API outside Claude Code CLI"), and a 400 error from one provider doesn't mean other providers will fail. Now all upstream HTTP errors trigger failover, allowing the system to try all configured providers before giving up.