     end
   end
 
-  defmodule ServerError do
-    defexception message: "no message"
-  end
-
   defp do_perform_request(method, path, params, body, tries \\ 0) do
     tries = tries + 1
 


  require Logger

  alias ESx.Transport.{State, Sniffer, Connection}

  defstruct [
    method: "GET",

    s = State.state

    case resp do
      {:ok, %HTTPoison.Response{status_code: status}} when status < 300 ->
        resp

        # TODO:
