Skip to content

Commit

Permalink
Merge pull request #3277 from flavioheleno/patch-1
Browse files Browse the repository at this point in the history
Create HttpTooManyRequestsException.php
  • Loading branch information
l0gicgate committed Aug 16, 2023
2 parents 7ed49f1 + 6e95965 commit 6de4dc6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Slim/Exception/HttpTooManyRequestsException.php
@@ -0,0 +1,27 @@
<?php

/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License)
*/

declare(strict_types=1);

namespace Slim\Exception;

class HttpTooManyRequestsException extends HttpSpecializedException
{
/**
* @var int
*/
protected $code = 429;

/**
* @var string
*/
protected $message = 'Too many requests.';

protected string $title = '429 Too Many Requests';
protected string $description = 'The client application has surpassed its rate limit, or number of requests they can send in a given period of time.';
}

0 comments on commit 6de4dc6

Please sign in to comment.