The abort function throws an HTTP exception which will be rendered by the exception handler:
<?php abort(403);
<?php         }



        if (! $this->getLoginUrl()) {

            abort(403);

        }



        abort(redirect($this->getLoginUrl()));
<?php             abort(403);

        }



        abort(redirect($this->getLoginUrl()));

    }



    protected function getLoginUrl()
<?php {

    public function protect()

    {

        abort(403);

    }

}
<?php         $ips = array_get($this->config, 'allowed', []);



        if (! in_array(request()->ip(), $ips)) {

            abort(403);

        }

    }

}
<?php     public function protect()

    {

        if (empty(array_get($this->config, 'allowed', []))) {

            abort(403);

        }



        if ($this->isPasswordFormUrl()) {
<?php     {

        $url = $this->getPasswordFormUrl().'?token='.$this->generateToken();



        abort(redirect($url));

    }



    protected function getPasswordFormUrl()
<?php     {

        auth()->logout();



        abort(redirect($this->params->get('redirect', '/'), $this->params->get('response', 302)));

    }
<?php             return;

        }



        abort(redirect($containers->first()->showUrl()));

    }

}
<?php     private function asset($asset)

    {

        if (! $asset = Asset::find(base64_decode($asset))) {

            abort(404);

        }



        return $asset;
<?php         }



        if (! $variables = $set->in($site)) {

            return abort(404);

        }



        $this->authorize('edit', $variables);
<?php         }



        if (! $set = $set->in($site)) {

            abort(404);

        }



        $this->authorize('edit', $set);
<?php         try {

            SignatureFactory::create(Config::getAppKey())->validateRequest($path, $_GET);

        } catch (SignatureException $e) {

            abort(400, $e->getMessage());

        }

    }

}
<?php     public function handle($request, Closure $next)

    {

        if (! User::current()->isSuper()) {

            abort(403);

        }



        return $next($request);
<?php     protected function handleAmp()

    {

        if (Statamic::isAmpRequest() && ! $this->data->ampable()) {

            abort(404);

        }



        return $this;
<?php             return;

        }



        abort(redirect($location, $this->params->get('response', 302)));

    }

}