knutin / elli

Simple, robust and performant Erlang web server
MIT License
663 stars 79 forks source link

Middleware to show better 4xx, 5xx responses #62

Open potomak opened 11 years ago

knutin commented 11 years ago

I'm a bit reluctant to a catch-all in the middleware, as this makes it tricky to call the handleevent/3 callbacks for request{exception,error,exit}. An option would be to call it from the middleware explicitly.

I will have to think about it for a bit.. :-)

potomak commented 11 years ago

While you were thinking I've tried to solve the problem in the easiest way :grin:

Notes: