diff --git a/backend/src/app/http/errors.clj b/backend/src/app/http/errors.clj index fac709447..91b25beb1 100644 --- a/backend/src/app/http/errors.clj +++ b/backend/src/app/http/errors.clj @@ -55,17 +55,9 @@ (defmethod handle-exception :validation [err req] - (let [header (get-in req [:headers "accept"]) - edata (ex-data err)] - (if (and (= :spec-validation (:code edata)) - (str/starts-with? header "text/html")) - {:status 400 - :headers {"content-type" "text/html"} - :body (str "
"
-                  (:explain edata)
-                  "
\n")} - {:status 400 - :body (dissoc edata ::s/problems)}))) + (let [edata (ex-data err)] + {:status 400 + :body (dissoc edata ::s/problems)})) (defmethod handle-exception :assertion [error request]