From: Michael Andreen Date: Sun, 20 Jul 2008 11:37:36 +0000 (+0200) Subject: Nicer 404 handling X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=3f84c80fb02cc6c90abe1979359ecad3d529676d Nicer 404 handling --- diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 6421b00..cda2e94 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -36,7 +36,6 @@ sub index : Local Path Args(0) { sub default : Path { my ( $self, $c ) = @_; - $c->res->body( 'Page not found' ); $c->response->status(404); } diff --git a/root/src/default.tt2 b/root/src/default.tt2 new file mode 100644 index 0000000..1473044 --- /dev/null +++ b/root/src/default.tt2 @@ -0,0 +1 @@ +

Page not found