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: