diff --git a/mullvad-api/src/rest.rs b/mullvad-api/src/rest.rs index c89b4b22c1ef..f2dcccdd0d41 100644 --- a/mullvad-api/src/rest.rs +++ b/mullvad-api/src/rest.rs @@ -403,7 +403,7 @@ impl Request { let response = response?; if !self.expected_status.contains(&response.status()) { - if self.expected_status.is_empty() { + if !self.expected_status.is_empty() { log::error!( "Unexpected HTTP status code {}, expected codes [{}]", response.status(),