Module: Middlewares/404

404 Middleware

This middleware sends back a 404 response status for every request. It has to be loaded after all other routing middleware to serve as a default route.

Source:

Methods

(static) factory(context) → {Promise.<function()>}

Instanciate PageNotFound middleware This simple middleware will answer to any request with a 404 error

Parameters:
Name Type Description
context Object

Current context

Source:
Returns:

PageNotFound middleware function

Type
Promise.<function()>