src/Phapi/Exception/TooManyRequests.php
<?php
namespace Phapi\Exception;
use Phapi\Exception;
/**
* Class Too Many Requests
*
* Response code 429
*
* Returned when a request cannot be served due to the application's
* rate limit having been exhausted for the resource.
*
* @category Phapi
* @package Phapi\Exception
* @author Peter Ahinko <peter@ahinko.se>
* @license MIT (http://opensource.org/licenses/MIT)
* @link https://github.com/phapi/exception
*/
class TooManyRequests extends Exception
{
/**
* Response status code
*
* @var int
*/
protected $statusCode = 429;
/**
* Response status message
*
* @var string
*/
protected $statusMessage = 'Too Many Requests';
/**
* Error message
*
* @var string
*/
protected $description =
'Returned when a request cannot be served due to the application\'s rate limit having been exhausted for the resource.';
}