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.003 - 26 May 2017 11:02:04 GMT - Search in distribution

2 results (0.109 seconds)