3 role CatalystX::Declare::Action::CatchValidationError {
7 around execute (Object $controller, Object $ctx, @rest) {
10 $self->$orig($controller, $ctx, @rest);
12 catch (Str $error where { /^Validation failed for/ }) {
14 $ctx->response->body( 'Bad Request' );
15 $ctx->response->status( 400 );