aboutsummaryrefslogtreecommitdiff
path: root/src/web/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/error.rs')
-rw-r--r--src/web/error.rs2
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,