« Throwable/Role/Status/RequestedRangeNotSatisfiable.pm
↑ Summary
Throwable/Role/Status/UnsupportedMediaType.pm »
| 1 | package HTTP::Throwable::Role::Status::TooManyRequests 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 { 429 } | ||
| 12 | sub default_reason { 'Too Many Requests' } | ||
| 13 | |||
| 14 | no Moo::Role; 1; | ||
| 15 | |||
| 16 | =pod | ||
| 17 | |||
| 18 | =encoding UTF-8 | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | HTTP::Throwable::Role::Status::TooManyRequests - 429 Too Many Requests | ||
| 23 | |||
| 24 | =head1 VERSION | ||
| 25 | |||
| 26 | version 0.028 | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | The 429 status code indicates that the user has sent too many | ||
| 31 | requests in a given amount of time ("rate limiting"). The response | ||
| 32 | representations SHOULD include details explaining the condition, | ||
| 33 | and MAY include a Retry-After header indicating how to wait before | ||
| 34 | making a new request. | ||
| 35 | |||
| 36 | =head1 PERL VERSION | ||
| 37 | |||
| 38 | This library should run on perls released even a long time ago. It should work | ||
| 39 | on any version of perl released in the last five years. | ||
| 40 | |||
| 41 | Although it may work on older versions of perl, no guarantee is made that the | ||
| 42 | minimum required version will not be increased. The version may be increased | ||
| 43 | for any reason, and there is no promise that patches will be accepted to lower | ||
| 44 | the minimum required perl. | ||
| 45 | |||
| 46 | =head1 AUTHORS | ||
| 47 | |||
| 48 | =over 4 | ||
| 49 | |||
| 50 | =item * | ||
| 51 | |||
| 52 | Stevan Little <stevan.little@iinteractive.com> | ||
| 53 | |||
| 54 | =item * | ||
| 55 | |||
| 56 | Ricardo Signes <cpan@semiotic.systems> | ||
| 57 | |||
| 58 | =back | ||
| 59 | |||
| 60 | =head1 COPYRIGHT AND LICENSE | ||
| 61 | |||
| 62 | This software is copyright (c) 2011 by Infinity Interactive, Inc. | ||
| 63 | |||
| 64 | This is free software; you can redistribute it and/or modify it under | ||
| 65 | the same terms as the Perl 5 programming language system itself. | ||
| 66 | |||
| 67 | =cut | ||
| 68 | |||
| 69 | __END__ |