Hacker News new | ask | show | jobs
by 147 2224 days 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.
1 comments

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