#iron #error-handling

iron-error-router

Map HTTP status codes to handlers and middlewares

6 releases

Uses old Rust 2015

0.3.0 Jan 11, 2017
0.2.0 Aug 16, 2016
0.1.5 Aug 15, 2016
0.1.3 Mar 29, 2016

#67 in #iron

39 downloads per month

MIT license

5KB
79 lines

iron-error-router Build status

A Iron middleware for showing custom error pages for specific statuses.

Currently the middleware will check if a body has not yet been set for the response, and will invoke a custom AfterMiddleware or Handler, depending on the response's status.

See /examples/ for usage.

License

Licensed under the MIT, see LICENSE.

Dependencies

~5MB
~102K SLoC