Hacker News new | ask | show | jobs
by scriby 4698 days ago
Express does return a 500 on exception by default. This article showed details about how to customize the error page.
1 comments

Only if you get lucky enough to hit the exception on the initial call stack. If you do anything asynchronous first and then throw the exception, express just either leaves the client connection hanging (if you trap and log unhandled exceptions) or crashes all client connections (if you don't).