private static HttpResponseStatus statusCodeFromError(final RpcErrorType error) {
    return switch (error) {
      case INVALID_REQUEST, PARSE_ERROR -> HttpResponseStatus.BAD_REQUEST;
      case TIMEOUT_ERROR -> HttpResponseStatus.REQUEST_TIMEOUT;
      default -> HttpResponseStatus.OK;
    };
  }
Creates a new AbstractJsonRpcExecutor.

@param jsonRpcExecutor The executor used to process the JSON RPC requests.
@param tracer The tracer used for monitoring and debugging purposes.
@param ctx The context of the routing, containing information about the HTTP request and
    response.
@param jsonRpcConfiguration The configuration for JSON RPC operations
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/handlers/AbstractJsonRpcExecutor.java