Debugging
Express error handling in production: async errors, error middleware and what to log
An async handler that rejects in Express 4 can crash the process or leave the request hanging. How errors reach your error middleware in Express 4 and 5, one error class for status codes, and what to log so on-call can find the request behind a 500.
Jason Fill
May 14, 2026
7 min read