« Throwable/Role/Status/PermanentRedirect.pm
↑ Summary
Throwable/Role/Status/RequestEntityTooLarge.pm »
| 1 | package HTTP::Throwable::Role::Status::PreconditionFailed; | ||
| 2 | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 3 | $HTTP::Throwable::Role::Status::PreconditionFailed::VERSION = '0.027'; | ||
| 4 | use Moo::Role; | ||
| 5 | |||
| 6 | with( | ||
| 7 | 'HTTP::Throwable', | ||
| 8 | 'HTTP::Throwable::Role::BoringText', | ||
| 9 | ); | ||
| 10 | |||
| 11 | sub default_status_code { 412 } | ||
| 12 | sub default_reason { 'Precondition Failed' } | ||
| 13 | |||
| 14 | no Moo::Role; 1; | ||
| 15 | |||
| 16 | =pod | ||
| 17 | |||
| 18 | =encoding UTF-8 | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | HTTP::Throwable::Role::Status::PreconditionFailed - 412 Precondition Failed | ||
| 23 | |||
| 24 | =head1 VERSION | ||
| 25 | |||
| 26 | version 0.027 | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | The precondition given in one or more of the request-header | ||
| 31 | fields evaluated to false when it was tested on the server. | ||
| 32 | This response code allows the client to place preconditions | ||
| 33 | on the current resource metainformation (header field data) | ||
| 34 | and thus prevent the requested method from being applied to | ||
| 35 | a resource other than the one intended. | ||
| 36 | |||
| 37 | =head1 AUTHORS | ||
| 38 | |||
| 39 | =over 4 | ||
| 40 | |||
| 41 | =item * | ||
| 42 | |||
| 43 | Stevan Little <stevan.little@iinteractive.com> | ||
| 44 | |||
| 45 | =item * | ||
| 46 | |||
| 47 | Ricardo Signes <rjbs@cpan.org> | ||
| 48 | |||
| 49 | =back | ||
| 50 | |||
| 51 | =head1 COPYRIGHT AND LICENSE | ||
| 52 | |||
| 53 | This software is copyright (c) 2011 by Infinity Interactive, Inc. | ||
| 54 | |||
| 55 | This is free software; you can redistribute it and/or modify it under | ||
| 56 | the same terms as the Perl 5 programming language system itself. | ||
| 57 | |||
| 58 | =cut | ||
| 59 | |||
| 60 | __END__ |