To implement error-handling middleware using Express.js.
Error handling is used to catch errors and send an appropriate response to the client.
Open /error to generate an error.