aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Controller
diff options
context:
space:
mode:
authorwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-02-14 03:03:24 +0000
committerwreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-02-14 03:03:24 +0000
commitcff2e7ecbfd0463f8c03481dcb06fe88bbb6da3a (patch)
treecbcac631cc665cb969c25f93405785ca43a4fa78 /lib/Reaction/UI/Controller
parent9df45cccb8fb317e8316fade1dbef438b47cf92e (diff)
downloadreaction-cff2e7ecbfd0463f8c03481dcb06fe88bbb6da3a.tar.gz
reaction-cff2e7ecbfd0463f8c03481dcb06fe88bbb6da3a.zip
setting content_type for error actions
Diffstat (limited to 'lib/Reaction/UI/Controller')
-rw-r--r--lib/Reaction/UI/Controller/Root.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Reaction/UI/Controller/Root.pm b/lib/Reaction/UI/Controller/Root.pm
index 43c02da..e143bc1 100644
--- a/lib/Reaction/UI/Controller/Root.pm
+++ b/lib/Reaction/UI/Controller/Root.pm
@@ -37,14 +37,16 @@ sub end :Private {
sub error_404 :Private {
my ($self, $c) = @_;
- $c->res->body("Error 404: File not Found");
+ $c->res->body("Error 404: Not Found");
$c->res->status(404);
+ $c->res->content_type('text/plain');
}
sub error_403 :Private {
my ($self, $c) = @_;
$c->res->body("Error 403: Forbidden");
$c->res->status(403);
+ $c->res->content_type('text/plain');
}
1;