]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Root.pm
Added more status codes
[ndwebbie.git] / lib / NDWeb / Controller / Root.pm
index fcff93f24b0de56073d1d1ef37a7dfe34366e17a..9ce7f8c28c3640dbc5bcdbba70ae4578fc85f383 100644 (file)
@@ -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;
        }