1 package Catalyst::Plugin::Test::Errors;
10 return $c->next::method(@_);
13 if ( $_[0] =~ /^(Unknown resource|No default action defined)/ ) {
14 $c->response->status(404);
17 if ( $_[0] =~ /^Couldn\'t forward/ ) {
18 $c->response->status(404);
21 if ( $_[0] =~ /^Caught exception/ ) {
22 $c->response->status(500);
28 $c->response->headers->push_header( 'X-Catalyst-Error' => $error );