diff options
Diffstat (limited to 'mullvad-api/src/rest.rs')
| -rw-r--r-- | mullvad-api/src/rest.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mullvad-api/src/rest.rs b/mullvad-api/src/rest.rs index 517e0b3a03..d174c3d19c 100644 --- a/mullvad-api/src/rest.rs +++ b/mullvad-api/src/rest.rs @@ -584,7 +584,6 @@ pub async fn parse_rest_response( pub async fn handle_error_response<T>(response: Response) -> Result<T> { let status = response.status(); let error_message = match status { - hyper::StatusCode::NOT_FOUND => "Not found", hyper::StatusCode::METHOD_NOT_ALLOWED => "Method not allowed", status => match get_body_length(&response) { 0 => status.canonical_reason().unwrap_or("Unexpected error"), |
