4 ms·
Express does return a 500 on exception by default. This article showed details about how to customize the error page.
by scriby 13y ago
Express does return a 500 on exception by default. This article showed details about how to customize the error page.
- ef4 13y agoOnly 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).