X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FRoot.pm;h=9ce7f8c28c3640dbc5bcdbba70ae4578fc85f383;hb=28cc9c2d61cf6ee0bfcd02c82e0195efaf6cf27a;hp=fcff93f24b0de56073d1d1ef37a7dfe34366e17a;hpb=230e61ee1d992255138b56c50caf9cca52532c2b;p=ndwebbie.git diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index fcff93f..9ce7f8c 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -38,7 +38,8 @@ sub index : Local Path Args(0) { sub default : Path { my ( $self, $c ) = @_; - $c->response->status(404); + $c->stash(template => 'default.tt2'); + $c->response->status(410); } sub login : Local { @@ -166,7 +167,7 @@ Attempt to render a view, if needed. sub end : ActionClass('RenderView') { my ($self, $c) = @_; - if ($c->res->status == 302){ + if ($c->res->status >= 300 && $c->res->status <= 400 ){ return; }