expressError handling


Syntax

  • app.use(function(err, req, res, next) {}) // Basic middleware

Parameters

NameDescription
errObject with error information
reqHTTP request object
resHTTP response object
nextfunction used to start next middleware execution