We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7e335a + 606006b commit fbf0bbeCopy full SHA for fbf0bbe
magic-nix-cache/src/error.rs
@@ -29,6 +29,10 @@ pub enum Error {
29
impl IntoResponse for Error {
30
fn into_response(self) -> Response {
31
let code = match &self {
32
+ Self::Api(gha_cache::api::Error::ApiError {
33
+ status: StatusCode::TOO_MANY_REQUESTS,
34
+ ..
35
+ }) => StatusCode::TOO_MANY_REQUESTS,
36
// HACK: HTTP 418 makes Nix throw a visible error but not retry
37
Self::Api(_) => StatusCode::IM_A_TEAPOT,
38
Self::NotFound => StatusCode::NOT_FOUND,
0 commit comments