From 4d99f22b3d278c2c0e2c2b306765537492bbe3bc Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 29 Jan 2025 10:46:03 +0100 Subject: [PATCH] New error codes --- crates/meilisearch-types/src/error.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/meilisearch-types/src/error.rs b/crates/meilisearch-types/src/error.rs index 8caeb70c2..b282e5f28 100644 --- a/crates/meilisearch-types/src/error.rs +++ b/crates/meilisearch-types/src/error.rs @@ -260,6 +260,8 @@ InvalidMultiSearchMergeFacets , InvalidRequest , BAD_REQUEST ; InvalidMultiSearchQueryFacets , InvalidRequest , BAD_REQUEST ; InvalidMultiSearchQueryPagination , InvalidRequest , BAD_REQUEST ; InvalidMultiSearchQueryRankingRules , InvalidRequest , BAD_REQUEST ; +InvalidMultiSearchQueryPosition , InvalidRequest , BAD_REQUEST ; +InvalidMultiSearchRemote , InvalidRequest , BAD_REQUEST ; InvalidMultiSearchWeight , InvalidRequest , BAD_REQUEST ; InvalidSearchAttributesToSearchOn , InvalidRequest , BAD_REQUEST ; InvalidSearchAttributesToCrop , InvalidRequest , BAD_REQUEST ; @@ -357,6 +359,12 @@ MissingSwapIndexes , InvalidRequest , BAD_REQUEST ; MissingTaskFilters , InvalidRequest , BAD_REQUEST ; NoSpaceLeftOnDevice , System , UNPROCESSABLE_ENTITY; PayloadTooLarge , InvalidRequest , PAYLOAD_TOO_LARGE ; +ProxyBadResponse , System , BAD_GATEWAY ; +ProxyBadRequest , InvalidRequest , BAD_REQUEST ; +ProxyCouldNotSendRequest , System , BAD_GATEWAY ; +ProxyInvalidApiKey , Auth , FORBIDDEN ; +ProxyRemoteError , System , BAD_GATEWAY ; +ProxyTimeout , System , BAD_GATEWAY ; TooManySearchRequests , System , SERVICE_UNAVAILABLE ; TaskNotFound , InvalidRequest , NOT_FOUND ; BatchNotFound , InvalidRequest , NOT_FOUND ;