claude-connector messages: 401..=403 as a range
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ad2fecab31
commit
9fa2b23682
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue