1package HTTP::Throwable::Role::Status::PermanentRedirect;
2our $AUTHORITY = 'cpan:STEVAN';
3$HTTP::Throwable::Role::Status::PermanentRedirect::VERSION = '0.027';
4use Moo::Role;
5
6with(
7    'HTTP::Throwable',
8    'HTTP::Throwable::Role::BoringText',
9    'HTTP::Throwable::Role::Redirect',
10);
11
12sub default_status_code { 308 }
13sub default_reason      { 'Permanent Redirect' }
14
15no Moo::Role; 1;
16
17=pod
18
19=encoding UTF-8
20
21=head1 NAME
22
23HTTP::Throwable::Role::Status::PermanentRedirect - 308 Permanent Redirect
24
25=head1 VERSION
26
27version 0.027
28
29=head1 DESCRIPTION
30
31This status code is defined in L<RFC 7238|http://tools.ietf.org/html/rfc7238>.
32
33The 308 (Permanent Redirect) status code indicates that the target resource has
34been assigned a new permanent URI and any future references to this resource
35ought to use one of the enclosed URIs.
36
37The server SHOULD generate a Location header field ([RFC7231], Section 7.1.2)
38in the response containing a preferred URI reference for the new permanent URI.
39The user agent MAY use the Location field value for automatic redirection.  The
40server's response payload usually contains a short hypertext note with a
41hyperlink to the new URI(s).
42
43=head1 AUTHORS
44
45=over 4
46
47=item *
48
49Stevan Little <stevan.little@iinteractive.com>
50
51=item *
52
53Ricardo Signes <rjbs@cpan.org>
54
55=back
56
57=head1 COPYRIGHT AND LICENSE
58
59This software is copyright (c) 2011 by Infinity Interactive, Inc.
60
61This is free software; you can redistribute it and/or modify it under
62the same terms as the Perl 5 programming language system itself.
63
64=cut
65
66__END__
67
68# ABSTRACT: 308 Permanent Redirect
69
70#pod =head1 DESCRIPTION
71#pod
72#pod This status code is defined in L<RFC 7238|http://tools.ietf.org/html/rfc7238>.
73#pod
74#pod The 308 (Permanent Redirect) status code indicates that the target resource has
75#pod been assigned a new permanent URI and any future references to this resource
76#pod ought to use one of the enclosed URIs.
77#pod
78#pod The server SHOULD generate a Location header field ([RFC7231], Section 7.1.2)
79#pod in the response containing a preferred URI reference for the new permanent URI.
80#pod The user agent MAY use the Location field value for automatic redirection.  The
81#pod server's response payload usually contains a short hypertext note with a
82#pod hyperlink to the new URI(s).
83#pod
84