diff options
author | Alex Auvolat <alex@adnab.me> | 2021-10-21 17:29:27 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-10-21 17:29:27 +0200 |
commit | bff5333c622ce5c8c3a151b4bd2d7ad2d04004c2 (patch) | |
tree | 526f8a96612c6bc8b69344db6e60aa861e006932 /src/web/error.rs | |
parent | b7eccf52640b91c7243748e46506b88d0f1ceaef (diff) | |
download | garage-bff5333c622ce5c8c3a151b4bd2d7ad2d04004c2.tar.gz garage-bff5333c622ce5c8c3a151b4bd2d7ad2d04004c2.zip |
Move things around, improvements to CLI
Diffstat (limited to 'src/web/error.rs')
-rw-r--r-- | src/web/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/error.rs b/src/web/error.rs index 5ac27914..2ed7139f 100644 --- a/src/web/error.rs +++ b/src/web/error.rs @@ -39,7 +39,7 @@ impl Error { Error::NotFound => StatusCode::NOT_FOUND, Error::ApiError(e) => e.http_status_code(), Error::InternalError( - GarageError::Timeout | GarageError::RemoteError(_) | GarageError::TooManyErrors(_), + GarageError::Timeout | GarageError::RemoteError(_) | GarageError::Quorum(_, _, _), ) => StatusCode::SERVICE_UNAVAILABLE, Error::InternalError(_) => StatusCode::INTERNAL_SERVER_ERROR, _ => StatusCode::BAD_REQUEST, |