 ;; `ConnectException`.
 (with-handler! #'simple-get
   java.net.ConnectException
-  (fn [e url _]
+  (fn [e url & [_]]
     (throw (ex-info (.getMessage e) {:type ::connection-refused
                                      :class :http}))))
 

;; `UnknownHostException`.
(with-handler! #'simple-get
  java.net.UnknownHostException
  (fn [e url _]
    (throw (ex-info (.getMessage e) {:type ::unknown-host
                                     :class :http}))))


;; `UnknownHostException`.
(with-handler! #'simple-post
  java.net.UnknownHostException
  (fn [e url & [_]]
    (throw (ex-info (.getMessage e) {:type ::unknown-host
                                     :class :http}))))
