express Error handling

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

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


Got any express Question?