diff --git a/crates/uv-client/src/error.rs b/crates/uv-client/src/error.rs index af69e27a0..2f88bdf54 100644 --- a/crates/uv-client/src/error.rs +++ b/crates/uv-client/src/error.rs @@ -77,6 +77,12 @@ impl Error { if status == reqwest::StatusCode::NOT_FOUND { return true; } + + // In some cases, registries (like PyPICloud) return a 403 for HEAD requests + // when they're not supported. Again, it's better to be lenient here. + if status == reqwest::StatusCode::FORBIDDEN { + return true; + } } }