From d3fe92de14ce93934329e1aaddbf23d2c86a0aef Mon Sep 17 00:00:00 2001 From: Tatiana Nesterenko Date: Mon, 14 Aug 2023 18:03:07 +0100 Subject: [PATCH] rpcsrv: remove default request HTTP codes from switch statement No functional changes, just a refactoring. Signed-off-by: Tatiana Nesterenko --- pkg/services/rpcsrv/error.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/services/rpcsrv/error.go b/pkg/services/rpcsrv/error.go index 683a3cc43..9f740f894 100644 --- a/pkg/services/rpcsrv/error.go +++ b/pkg/services/rpcsrv/error.go @@ -44,8 +44,6 @@ func getHTTPCodeForError(respErr *neorpc.Error) int { switch respErr.Code { case neorpc.BadRequestCode: httpCode = http.StatusBadRequest - case neorpc.InvalidRequestCode, neorpc.InvalidParamsCode: - httpCode = http.StatusUnprocessableEntity case neorpc.MethodNotFoundCode: httpCode = http.StatusMethodNotAllowed case neorpc.InternalServerErrorCode: