Flarum\Api\Handler\FloodingExceptionHandler::handle PHP Méthode

handle() public méthode

public handle ( Exception $e )
$e Exception
    public function handle(Exception $e)
    {
        $status = 429;
        $error = ['status' => (string) $status, 'code' => 'too_many_requests'];
        return new ResponseBag($status, [$error]);
    }
FloodingExceptionHandler