Express.js · Interface
ErrorRequestHandler
Express catches synchronous errors thrown in route handlers and middleware. It also provides a default error handler, so a custom one is not required to begin.
Last updated
Syntax
app.get(path, callback)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
route handlersmiddlewaredefault error handlerasynchronous code