If an error is not handled by custom error-handling middleware in Express, it is handled by the ______.

  • next()
  • defaultErrorHandler
  • express.handleError()
  • console.error()
If an error is not handled by custom error-handling middleware in Express, it is handled by the default Express error handler, which is often referred to as the "defaultErrorHandler." This handler sends an error response to the client and logs the error details.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *