(require '[clj-http.client :as http]) (http/server-error? {:status 503}) ;; throw NullPointerException if :status is absent from the argument ;; throw ClassCastException if :status value is not an Integer ;; returns true if :status value is 5xx ;; returns false otherwise