PureCode Software interview question

How would you implement centralized error handling in an Express.js application?