claude-connector messages: 401..=403 as a range

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-29 21:19:05 +01:00
commit 9fa2b23682

View file

@ -519,7 +519,7 @@ fn usage_of(usage: &Value) -> Option<Usage> {
/// `Authentication`; `Unavailable` would promise that it heals itself.
fn kind_of_status(status: u16) -> FailureKind {
match status {
401 | 402 | 403 => FailureKind::Authentication,
401..=403 => FailureKind::Authentication,
408 | 504 => FailureKind::Timeout,
429 => FailureKind::RateLimited,
300..=399 | 500..=599 => FailureKind::Unavailable,