diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-05-01 11:17:13 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-05-01 11:17:13 +0000 |
commit | f53a09b8d79c85b86b161c1ec7ca6f7cff5e169f (patch) | |
tree | 91debd6f936e9da20e5bdcd6fb7afa363bcff61c /src/errors.rs | |
parent | Make error page uniform (diff) | |
download | miniserve-f53a09b8d79c85b86b161c1ec7ca6f7cff5e169f.tar.gz miniserve-f53a09b8d79c85b86b161c1ec7ca6f7cff5e169f.zip |
Display HTTP authentication errors
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 8264de0..a22127e 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -65,6 +65,10 @@ pub enum ContextualError { )] HTTPAuthenticationError(Box<ContextualError>), + /// This error might occur when the HTTP credentials are not correct + #[fail(display = "Invalid credentials for HTTP authentication")] + InvalidHTTPCredentials, + /// This error might occur when an HTTP request is invalid #[fail(display = "Invalid HTTP request\ncaused by: {}", _0)] InvalidHTTPRequestError(String), |