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

namespace App\Errors;

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 [];
  }
}