RateLimitExceededException
class RateLimitExceededException extends Exception
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(RequestException $previous, string $message = '')
        
                                            
                
            RateLimitExceededException constructor.
                    int|null
                
                
                    getRateLimitReset()
        
                                            
                
            Returns the number of seconds until the rate limit expires.
Details
        at         line 33
                            
    __construct(RequestException $previous, string $message = '')
        
    
    RateLimitExceededException constructor.
        in Exception at         line 70
                            
    serialize()
        
    
    {@inheritdoc}
        in Exception at         line 86
                            
    unserialize($serialized)
        
    
    {@inheritdoc}
        in Exception at         line 122
                            
    getRequest()
        
    
    Get the request that caused the exception.
        in Exception at         line 132
                            ResponseInterface|null
    getResponse()
        
    
    Get the associated response.
        in Exception at         line 140
                            
    hasResponse()
        
    
    Check if a response was received.
        in Exception at         line 148
                            string|null
    getRequestId()
        
    
    
        at         line 48
                            int|null
    getRateLimitReset()
        
    
    Returns the number of seconds until the rate limit expires.