Download src/Presentation/Exceptions/UnauthorizedException.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Presentation/Exceptions/UnauthorizedException.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Presentation/Exceptions/UnauthorizedException.php
-
curl -L -o UnauthorizedException.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Presentation/Exceptions/UnauthorizedException.php
423 Bytes
| namespace Presentation\Exceptions; | |
| use Easy\Http\Message\StatusCode; | |
| use Throwable; | |
| class UnauthorizedException extends HttpException | |
| { | |
| public function __construct( | |
| ?string $message = 'You are not authorized to access this resource.', | |
| ?string $param = null, | |
| ?Throwable $previous = null | |
| ) { | |
| parent::__construct($message, StatusCode::UNAUTHORIZED, $param, $previous); | |
| } | |
| } | |