]> ruin.nu Git - ndwebbie.git/commitdiff
Nicer 404 handling
authorMichael Andreen <harv@ruin.nu>
Sun, 20 Jul 2008 11:37:36 +0000 (13:37 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 20 Jul 2008 11:37:36 +0000 (13:37 +0200)
lib/NDWeb/Controller/Root.pm
root/src/default.tt2 [new file with mode: 0644]

index 6421b001b6f3a8eabc69f4347f60c2a4328aed79..cda2e94f62f1f5d20958bf809ff7b9d640e3ce22 100644 (file)
@@ -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 (file)
index 0000000..1473044
--- /dev/null
@@ -0,0 +1 @@
+<h3>Page not found</h3>