From 3f84c80fb02cc6c90abe1979359ecad3d529676d Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sun, 20 Jul 2008 13:37:36 +0200 Subject: [PATCH] Nicer 404 handling --- lib/NDWeb/Controller/Root.pm | 1 - root/src/default.tt2 | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 root/src/default.tt2 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

-- 2.39.2