Module: Middlewares/404

404 Middleware

This middleware send back a 404 response status for each request. It has to be loaded after all other meaningful middlewares.

Source:

Methods

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

Initialize PageNotFound middleware This is a simple middleware that will answer any request with a 404 error

Parameters:
Name Type Description
context Object

Current context

Source:
Returns:

PageNotFound middleware function

Type
Promise.<function()>