joaotavora / snooze

Common Lisp RESTful web development
207 stars 22 forks source link

custom error response #41

Open boogsbunny opened 3 months ago

boogsbunny commented 3 months ago

Hi, How do you return a custom 500 response? My idea is that depending on the route I want to use a clack middleware to return a 500 status code with my own HTML page in addition.

mdbergmann commented 3 months ago

AFAIR you can use SNOOZE:HTTP-CONDITION. It takes a status code and a message.

boogsbunny commented 3 months ago

That I understand but I'm wondering about unexpected 500s in particular?