2020-03-18 21:08:32 -07:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2020-03-18 21:08:32 -07:00
|
|
|
namespace Pterodactyl\Exceptions\Http;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Http\Response;
|
|
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
2026-10-05 18:10:18 -04:00
|
|
|
use Throwable;
|
2020-03-18 21:08:32 -07:00
|
|
|
|
|
|
|
|
class HttpForbiddenException extends HttpException
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* HttpForbiddenException constructor.
|
|
|
|
|
*/
|
2026-10-05 18:10:18 -04:00
|
|
|
public function __construct(string $message = '', ?Throwable $previous = null)
|
2020-03-18 21:08:32 -07:00
|
|
|
{
|
|
|
|
|
parent::__construct(Response::HTTP_FORBIDDEN, $message, $previous);
|
|
|
|
|
}
|
|
|
|
|
}
|