summaryrefslogtreecommitdiff
path: root/src/Http/Exceptions/HttpAuthExpired.php
blob: 83ca240f1a6b3561a632d4d5bf574c7da8a21dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace Engelsystem\Http\Exceptions;

use Throwable;

class HttpAuthExpired extends HttpException
{
    /**
     * @param string         $message
     * @param array          $headers
     * @param int            $code
     * @param Throwable|null $previous
     */
    public function __construct(
        string $message = 'Authentication Expired',
        array $headers = [],
        int $code = 0,
        Throwable $previous = null
    ) {
        // The 419 code is used as "Page Expired" to differentiate from a 401 (not authorized)
        parent::__construct(419, $message, $headers, $code, $previous);
    }
}