Documentation

TooManyRequestsHttpException extends HttpException
in package

HttpException.

Tags
author

Ben Ramsey ben@benramsey.com

see
http://tools.ietf.org/html/rfc6585

Table of Contents

$headers  : mixed
$statusCode  : mixed
__construct()  : mixed
getHeaders()  : array<string|int, mixed>
Returns response headers.
getStatusCode()  : int
Returns the status code.
setHeaders()  : mixed
Set response headers.

Properties

Methods

__construct()

public __construct([int|string|null $retryAfter = null ][, string|null $message = '' ][, Throwable|null $previous = null ], int|null $code[, array<string|int, mixed> $headers = [] ]) : mixed
Parameters
$retryAfter : int|string|null = null

The number of seconds or HTTP-date after which the request may be retried

$message : string|null = ''

The internal exception message

$previous : Throwable|null = null

The previous exception

$code : int|null

The internal exception code

$headers : array<string|int, mixed> = []
Return values
mixed

getHeaders()

Returns response headers.

public getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

getStatusCode()

Returns the status code.

public getStatusCode() : int
Return values
int

setHeaders()

Set response headers.

public setHeaders(array<string|int, mixed> $headers) : mixed
Parameters
$headers : array<string|int, mixed>

Response headers

Return values
mixed

Search results