public DefaultExceptionSubscriber::on429(GetResponseForExceptionEvent $event)
Handles a 429 error for HTTP.
Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process.
File
- core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 124
Class
- DefaultExceptionSubscriber
- Handles default error responses in serialization formats.
Namespace
Drupal\serialization\EventSubscriber
Code
public function on429(GetResponseForExceptionEvent $event) { $this->setEventResponse($event, Response::HTTP_TOO_MANY_REQUESTS); }
Please login to continue.