hook after_error => sub { my $response = shift; };