claude-connector: Messages API backend for API-key auth (tools, thinking, caching) #4

Merged
eureka merged 7 commits from hands/connector-messages-backend into main 2026-11-29 20:25:20 +00:00
Showing only changes of commit 9fa2b23682 - Show all commits

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Meta Vens 2026-11-29 21:19:05 +01:00

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,