1.0.2 • Published 6 years ago

not-found-express v1.0.2

Weekly downloads
12
License
LGPL-3.0
Repository
github
Last release
6 years ago

Not found middleware

A simple Express middleware to return HTTP 404 - Not found when no route matches the request.

Usage

var Express = require('express');
var notFoundExpress = require('not-found-express');

var express = Express();
express.use(notFoundExpress({
    message: 'Not found'
}));

Notes

The message it's optional and will default to Not found. The error generated is an http-error and can be dealt by http-error-express (see related modules).

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago