|
Ultima modificación |
Ver Log
|
| Rev |
Autor |
Línea Nro. |
Línea |
| 1441 |
ariadna |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Slim Framework (https://slimframework.com)
|
|
|
5 |
*
|
|
|
6 |
* @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License)
|
|
|
7 |
*/
|
|
|
8 |
|
|
|
9 |
declare(strict_types=1);
|
|
|
10 |
|
|
|
11 |
namespace Slim\Exception;
|
|
|
12 |
|
|
|
13 |
class HttpTooManyRequestsException extends HttpSpecializedException
|
|
|
14 |
{
|
|
|
15 |
/**
|
|
|
16 |
* @var int
|
|
|
17 |
*/
|
|
|
18 |
protected $code = 429;
|
|
|
19 |
|
|
|
20 |
/**
|
|
|
21 |
* @var string
|
|
|
22 |
*/
|
|
|
23 |
protected $message = 'Too many requests.';
|
|
|
24 |
|
|
|
25 |
protected string $title = '429 Too Many Requests';
|
|
|
26 |
protected string $description = 'The client application has surpassed its rate limit, ' .
|
|
|
27 |
'or number of requests they can send in a given period of time.';
|
|
|
28 |
}
|