Error429 extends HttpException
The HTTP 429 Too Many Requests client error response status code indicates the user has sent too many requests in a given amount of time. This is intended for use with rate-limiting schemes and may include a Retry-After header indicating how long to wait before making a new request.
Tags
Table of Contents
Constants
- DEFAULT_CODE : int = 429
- The default HTTP status code of the exception.
- DEFAULT_MESSAGE : string = 'Too Many Requests (429)'
- The default message of the exception.
Methods
- __construct() : mixed
- Creates a new HttpException instance.
Constants
DEFAULT_CODE
The default HTTP status code of the exception.
public
int
DEFAULT_CODE
= 429
DEFAULT_MESSAGE
The default message of the exception.
public
string
DEFAULT_MESSAGE
= 'Too Many Requests (429)'
Methods
__construct()
Creates a new HttpException instance.
public
__construct([string|null $message = null ][, int|null $code = null ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string|null = null
-
The error message, or null to use the class default.
- $code : int|null = null
-
The HTTP status code, or null to use the class default.
- $previous : Throwable|null = null
-
The previous throwable used for exception chaining.