Plack::Middleware::CustomErrorDocument - dynamically select error documents based on HTTP status code

Dynamically select an appropriate error document for an HTTP status error code. Pass in a subroutine coderef, which should take $env as the sole argument, and return the destination file path as a string. An example use would be to return a 'missing'...

MJEMMESON/Plack-Middleware-CustomErrorDocument-0.004 - 29 Jun 2012 16:50:27 GMT - Search in distribution

Plack::Middleware::PrettyException - Capture exceptions and present them as HTML or JSON

"Plack::Middleware::PrettyException" allows you to use exceptions in your models (and also controllers, but they should be kept slim!) and have them rendered as JSON or nice-ish HTML with very little fuzz. But if your Plack app returns an HTTP status...

DOMM/Plack-Middleware-PrettyException-1.001 - 18 Jan 2017 10:38:47 GMT - Search in distribution

2 results (0.154 seconds)