RateLimitExceededException
class RateLimitExceededException extends RuntimeException
A RateLimitExceededException is thrown when there have been too many requests.
The usual RateLimit on the Content Delivery API is 216000 requests/hour and 78 requests/second. Responses cached by the Contentful CDN don't count against the rate limit.
Methods
__construct(string $message = "", int $code, Exception $previous = null, int|null $rateLimitReset = null)
RateLimitExceededException constructor.
int|null
getRateLimitReset()
Returns the number of seconds until the rate limit expires.
Details
at line 32
__construct(string $message = "", int $code, Exception $previous = null, int|null $rateLimitReset = null)
RateLimitExceededException constructor.
at line 44
int|null
getRateLimitReset()
Returns the number of seconds until the rate limit expires.