Fork me on GitHub
#ring
<
2019-10-13
>
Shaitan15:10:49

how to give status response 500 from Compojure? I can not see any function for that...

jumar15:10:34

How about just {:status 500} ?

✔️ 4
Shaitan15:10:06

is there any idiomatic way? :thinking_face:

jumar15:10:16

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))

✔️ 4