File Coverage

blib/lib/CatalystX/RequestModel/Utils/InvalidContentType.pm
Criterion Covered Total %
statement 3 6 50.0
branch n/a
condition n/a
subroutine 1 3 33.3
pod 0 2 0.0
total 4 11 36.3


line stmt bran cond sub pod time code
1             package CatalystX::RequestModel::Utils::InvalidContentType;
2            
3 6     6   66 use Moose;
  6         16  
  6         43  
4             with 'CatalystX::Utils::DoesHttpException';
5            
6             has 'ct' => (is=>'ro', required=>1);
7              
8 0     0 0   sub status_code { 415 }
9 0     0 0   sub error { "Bad request content type not allowed '@{[ $_[0]->ct ]}' " }
  0            
10              
11             __PACKAGE__->meta->make_immutable;