Skip to content

Commit

Permalink
Create HttpTooManyRequestsException.php
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Aug 2, 2023
1 parent e9e99c2 commit 6e95965
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Slim/Exception/HttpTooManyRequestsException.php
Original file line number Diff line number Diff line change
@@ -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 6e95965

Please sign in to comment.