3 ms·
But if I wanted to say return a 404 I don't want to have to specify "Not Found" along with it every time.
by 147 6y ago
But if I wanted to say return a 404 I don't want to have to specify "Not Found" along with it every time.
- Bogdanp 6y agoAs of a couple releases ago, the message gets set according to the status code so this code would behave as expected: (response/xexpr #:code 404 '(h1 "Not Found"))