1 package Catalyst::TraitFor::Context::TestErrors;
11 if ( $_[0] =~ /^(Unknown resource|No default action defined)/ ) {
12 $c->response->status(404);
15 if ( $_[0] =~ /^Couldn\'t forward/ ) {
16 $c->response->status(404);
19 if ( $_[0] =~ /^Caught exception/ ) {
20 $c->response->status(500);
25 $c->response->headers->push_header( 'X-Catalyst-Error' => $error );