 ;; `ConnectTimeoutException`.
 (with-handler! #'simple-post
   org.apache.http.conn.ConnectTimeoutException
-  (fn [e url _]
+  (fn [e url & [_]]
     (throw (ex-info (.getMessage e) {:type ::connect-timeout
                                      :class :http}))))
 

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


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

