NAME
PAGI::App::NotFound - Customizable 404 response
SYNOPSIS
use PAGI::App::NotFound;
my $app = PAGI::App::NotFound->new(
body => '<h1>Page not found</h1>',
content_type => 'text/html',
)->to_app;
DESCRIPTION
Returns a customizable 404 (or other status) response. Useful as a fallback in a Cascade.
OPTIONS
body- Response body (string or coderef, default: 'Not Found')content_type- Content-Type header (default: 'text/plain')status- HTTP status code (default: 404)