« Throwable/Role/Status/RequestedRangeNotSatisfiable.pm
↑ Summary
Throwable/Role/Status/UnsupportedMediaType.pm »
| 1 | package HTTP::Throwable::Role::Status::TooManyRequests; | ||
| 2 | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 3 | $HTTP::Throwable::Role::Status::TooManyRequests::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 { 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.027 | ||
| 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 AUTHORS | ||
| 37 | |||
| 38 | =over 4 | ||
| 39 | |||
| 40 | =item * | ||
| 41 | |||
| 42 | Stevan Little <stevan.little@iinteractive.com> | ||
| 43 | |||
| 44 | =item * | ||
| 45 | |||
| 46 | Ricardo Signes <rjbs@cpan.org> | ||
| 47 | |||
| 48 | =back | ||
| 49 | |||
| 50 | =head1 COPYRIGHT AND LICENSE | ||
| 51 | |||
| 52 | This software is copyright (c) 2011 by Infinity Interactive, Inc. | ||
| 53 | |||
| 54 | This is free software; you can redistribute it and/or modify it under | ||
| 55 | the same terms as the Perl 5 programming language system itself. | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | __END__ |