Drahak\Restful\Application\BadRequestException::tooManyRequests PHP Method

tooManyRequests() public static method

Is thrown to reject request due to rate limiting
public static tooManyRequests ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
return BadRequestException
    public static function tooManyRequests($message = '', $previous = NULL)
    {
        return new self($message, 429, $previous);
    }