diff --git a/src/authentication/authentication_context.rs b/src/authentication/authentication_context.rs index 5b130ef..bce348c 100644 --- a/src/authentication/authentication_context.rs +++ b/src/authentication/authentication_context.rs @@ -127,7 +127,7 @@ where } None => Err( AuthenticationError::HttpParseError(http_authorization_line.to_string()) - .into_unknown_error(), + .into_basic_error(), ), } } diff --git a/src/authentication/authentication_service.rs b/src/authentication/authentication_service.rs index 8f6cf3c..aee910f 100644 --- a/src/authentication/authentication_service.rs +++ b/src/authentication/authentication_service.rs @@ -126,7 +126,7 @@ where let auth = match parse_result { Ok(p) => p, Err(e) => { - return unauthorized_response(request.request(), e.into_unknown_error(), realm) + return unauthorized_response(request.request(), e.into_basic_error(), realm) } };