Throwable/Role/Status/Gone.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
default_status_code
2.0
default_reason
2.0
BEGIN
2.0
CRAP 2.0
1 package HTTP::Throwable::Role::Status::Gone 0.028;
2 our $AUTHORITY = 'cpan:STEVAN';
3  
4 use Moo::Role;
5  
6 with(
7 'HTTP::Throwable',
8 'HTTP::Throwable::Role::BoringText',
9 );
10  
11 sub default_status_code { 410 }
12 sub default_reason { 'Gone' }
13  
14 no Moo::Role; 1;
15  
16 =pod
17  
18 =encoding UTF-8
19  
20 =head1 NAME
21  
22 HTTP::Throwable::Role::Status::Gone - 410 Gone
23  
24 =head1 VERSION
25  
26 version 0.028
27  
28 =head1 DESCRIPTION
29  
30 The requested resource is no longer available at the server and
31 no forwarding address is known. This condition is expected to
32 be considered permanent. Clients with link editing capabilities
33 SHOULD delete references to the Request-URI after user approval.
34 If the server does not know, or has no facility to determine,
35 whether or not the condition is permanent, the status code 404
36 (Not Found) SHOULD be used instead. This response is cacheable
37 unless indicated otherwise.
38  
39 The 410 response is primarily intended to assist the task of web
40 maintenance by notifying the recipient that the resource is
41 intentionally unavailable and that the server owners desire that
42 remote links to that resource be removed. Such an event is common
43 for limited-time, promotional services and for resources belonging
44 to individuals no longer working at the server's site. It is not
45 necessary to mark all permanently unavailable resources as "gone"
46 or to keep the mark for any length of time -- that is left to the
47 discretion of the server owner.
48  
49 =head1 PERL VERSION
50  
51 This library should run on perls released even a long time ago. It should work
52 on any version of perl released in the last five years.
53  
54 Although it may work on older versions of perl, no guarantee is made that the
55 minimum required version will not be increased. The version may be increased
56 for any reason, and there is no promise that patches will be accepted to lower
57 the minimum required perl.
58  
59 =head1 AUTHORS
60  
61 =over 4
62  
63 =item *
64  
65 Stevan Little <stevan.little@iinteractive.com>
66  
67 =item *
68  
69 Ricardo Signes <cpan@semiotic.systems>
70  
71 =back
72  
73 =head1 COPYRIGHT AND LICENSE
74  
75 This software is copyright (c) 2011 by Infinity Interactive, Inc.
76  
77 This is free software; you can redistribute it and/or modify it under
78 the same terms as the Perl 5 programming language system itself.
79  
80 =cut
81  
82 __END__