how to give status response 500 from Compojure? I can not see any function for that...
How about just {:status 500}
?
is there any idiomatic way? :thinking_face:
What do you mean by idiomatic - a ring response is a map so I'd say it's idiomatic. Perhaps I'd make sure that headers and body is set too but i'm not 100% sure if that matters in this case
(-> (ring.util.response/response) (assoc :status 500))
there is also https://github.com/metosin/ring-http-response