diff options
Diffstat (limited to 'engine/exceptions/UnauthorizedException.php')
-rw-r--r-- | engine/exceptions/UnauthorizedException.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/exceptions/UnauthorizedException.php b/engine/exceptions/UnauthorizedException.php new file mode 100644 index 0000000..84a1251 --- /dev/null +++ b/engine/exceptions/UnauthorizedException.php @@ -0,0 +1,9 @@ +<?php + +class UnauthorizedException extends BadMethodCallException { + + public function __construct(string $message = '') { + parent::__construct($message, 401); + } + +}
\ No newline at end of file |