From 2eaab485321cf87d4a1fadd7fd77533935206cf7 Mon Sep 17 00:00:00 2001 From: mpostma Date: Thu, 19 Nov 2020 15:12:12 +0100 Subject: [PATCH] remove Maintenance error for error lib --- meilisearch-error/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/meilisearch-error/src/lib.rs b/meilisearch-error/src/lib.rs index 0f86ff653..d0e00e9be 100644 --- a/meilisearch-error/src/lib.rs +++ b/meilisearch-error/src/lib.rs @@ -69,7 +69,6 @@ pub enum Code { DocumentNotFound, Internal, InvalidToken, - Maintenance, MissingAuthorizationHeader, NotFound, PayloadTooLarge, @@ -118,7 +117,6 @@ impl Code { DocumentNotFound => ErrCode::invalid("document_not_found", StatusCode::NOT_FOUND), Internal => ErrCode::internal("internal", StatusCode::INTERNAL_SERVER_ERROR), InvalidToken => ErrCode::authentication("invalid_token", StatusCode::FORBIDDEN), - Maintenance => ErrCode::internal("maintenance", StatusCode::SERVICE_UNAVAILABLE), MissingAuthorizationHeader => ErrCode::authentication("missing_authorization_header", StatusCode::UNAUTHORIZED), NotFound => ErrCode::invalid("not_found", StatusCode::NOT_FOUND), PayloadTooLarge => ErrCode::invalid("payload_too_large", StatusCode::PAYLOAD_TOO_LARGE),