| 1 | package HTTP::Throwable::Role::Status::NotAcceptable 0.028; | ||
| 2 | 1 | our $AUTHORITY = 'cpan:STEVAN'; | |
| 3 | |||
| 4 | 1 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | with( | |
| 7 | 'HTTP::Throwable', | ||
| 8 | 'HTTP::Throwable::Role::BoringText', | ||
| 9 | ); | ||
| 10 | |||
| 11 | 2 | ▶ | sub default_status_code { 406 } |
|
Subroutine
default_status_code: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 2 | ▶ | sub default_reason { 'Not Acceptable' } |
|
Subroutine
default_reason: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | |||
| 14 | 1 | ▶ | no Moo::Role; 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | =pod | ||
| 17 | |||
| 18 | =encoding UTF-8 | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | HTTP::Throwable::Role::Status::NotAcceptable - 406 Not Acceptable | ||
| 23 | |||
| 24 | =head1 VERSION | ||
| 25 | |||
| 26 | version 0.028 | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | The resource identified by the request is only capable of generating | ||
| 31 | response entities which have content characteristics not acceptable | ||
| 32 | according to the accept headers sent in the request. | ||
| 33 | |||
| 34 | Unless it was a HEAD request, the response SHOULD include an entity | ||
| 35 | containing a list of available entity characteristics and location(s) | ||
| 36 | from which the user or user agent can choose the one most appropriate. | ||
| 37 | The entity format is specified by the media type given in the | ||
| 38 | Content-Type header field. Depending upon the format and the capabilities | ||
| 39 | of the user agent, selection of the most appropriate choice MAY be | ||
| 40 | performed automatically. However, this specification does not define | ||
| 41 | any standard for such automatic selection. | ||
| 42 | |||
| 43 | Note: HTTP/1.1 servers are allowed to return responses which are | ||
| 44 | not acceptable according to the accept headers sent in the | ||
| 45 | request. In some cases, this may even be preferable to sending a | ||
| 46 | 406 response. User agents are encouraged to inspect the headers of | ||
| 47 | an incoming response to determine if it is acceptable. | ||
| 48 | |||
| 49 | If the response could be unacceptable, a user agent SHOULD temporarily | ||
| 50 | stop receipt of more data and query the user for a decision on further | ||
| 51 | actions. | ||
| 52 | |||
| 53 | =head1 PERL VERSION | ||
| 54 | |||
| 55 | This library should run on perls released even a long time ago. It should work | ||
| 56 | on any version of perl released in the last five years. | ||
| 57 | |||
| 58 | Although it may work on older versions of perl, no guarantee is made that the | ||
| 59 | minimum required version will not be increased. The version may be increased | ||
| 60 | for any reason, and there is no promise that patches will be accepted to lower | ||
| 61 | the minimum required perl. | ||
| 62 | |||
| 63 | =head1 AUTHORS | ||
| 64 | |||
| 65 | =over 4 | ||
| 66 | |||
| 67 | =item * | ||
| 68 | |||
| 69 | Stevan Little <stevan.little@iinteractive.com> | ||
| 70 | |||
| 71 | =item * | ||
| 72 | |||
| 73 | Ricardo Signes <cpan@semiotic.systems> | ||
| 74 | |||
| 75 | =back | ||
| 76 | |||
| 77 | =head1 COPYRIGHT AND LICENSE | ||
| 78 | |||
| 79 | This software is copyright (c) 2011 by Infinity Interactive, Inc. | ||
| 80 | |||
| 81 | This is free software; you can redistribute it and/or modify it under | ||
| 82 | the same terms as the Perl 5 programming language system itself. | ||
| 83 | |||
| 84 | =cut | ||
| 85 | |||
| 86 | __END__ | ||