The abort function throws an HTTP exception which will be rendered by the exception handler:
<?php abort(403);
<?php                 ->resolveAllParameters($route, new $component);

        } catch (ModelNotFoundException $exception) {

            if (method_exists($route,'getMissing') && $route->getMissing()) {

                abort(

                    $route->getMissing()(request())

                );

            }



            throw $exception;
<?php         }



        if ($to && ! app(HandleRequests::class)->isLivewireRequest()) {

            abort(redirect($to));

        }



        if (! $to) return;
<?php {

    public function mount()

    {

        abort(404);

    }



    public function render()
<?php {

    public function mount()

    {

        abort(500);

    }



    public function render()