Q. What is error-handling middleware in Express.js used for?