ring

Shaitan 2019-10-13T15:08:49.014500Z

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

jumar 2019-10-13T15:09:34.014900Z

How about just {:status 500} ?

✔️ 1
Shaitan 2019-10-13T15:10:06.015300Z

is there any idiomatic way? :thinking_face:

jumar 2019-10-13T15:11:16.016600Z

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

✔️ 1
ikitommi 2019-10-13T18:23:25.017600Z

there is also https://github.com/metosin/ring-http-response