summaryrefslogtreecommitdiff
path: root/src/Errors/UnauthorizedError.php
blob: cd9981f9537f6e14d6859884106559aec84e7bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace App\Errors;

use Matrix\Enums\ErrorCode;
use Symfony\Component\HttpFoundation\Response;

class UnauthorizedError extends Exception
{
  public function __construct()
  {
    parent::__construct(ErrorCode::FORBIDDEN, "Unauthorized", Response::HTTP_UNAUTHORIZED);
  }

  public function getAdditionalData(): array
  {
    return [];
  }
}