File Coverage

blib/lib/HTTP/Throwable/Role/Status/NotFound.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 2 0.0
total 12 14 85.7


line stmt bran cond sub pod time code
1             package HTTP::Throwable::Role::Status::NotFound;
2             our $AUTHORITY = 'cpan:STEVAN';
3             $HTTP::Throwable::Role::Status::NotFound::VERSION = '0.026';
4 2     2   1777 use Moo::Role;
  2         4  
  2         18  
5              
6             with(
7             'HTTP::Throwable',
8             'HTTP::Throwable::Role::BoringText',
9             );
10              
11 3     3 0 128 sub default_status_code { 404 }
12 3     3 0 10636 sub default_reason { 'Not Found' }
13              
14 2     2   780 no Moo::Role; 1;
  2         4  
  2         10  
15              
16             =pod
17              
18             =encoding UTF-8
19              
20             =head1 NAME
21              
22             HTTP::Throwable::Role::Status::NotFound - 404 Not Found
23              
24             =head1 VERSION
25              
26             version 0.026
27              
28             =head1 DESCRIPTION
29              
30             The server has not found anything matching the Request-URI.
31             No indication is given of whether the condition is temporary
32             or permanent. The 410 (Gone) status code SHOULD be used if
33             the server knows, through some internally configurable mechanism,
34             that an old resource is permanently unavailable and has no
35             forwarding address. This status code is commonly used when
36             the server does not wish to reveal exactly why the request
37             has been refused, or when no other response is applicable.
38              
39             =head1 AUTHORS
40              
41             =over 4
42              
43             =item *
44              
45             Stevan Little
46              
47             =item *
48              
49             Ricardo Signes
50              
51             =back
52              
53             =head1 COPYRIGHT AND LICENSE
54              
55             This software is copyright (c) 2011 by Infinity Interactive, Inc..
56              
57             This is free software; you can redistribute it and/or modify it under
58             the same terms as the Perl 5 programming language system itself.
59              
60             =cut
61              
62             __END__