Completed
Push — master ( 137f97...421299 )
by Midori
20:35 queued 05:40
created

UnauthorizedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace midorikocak\nano\Exceptions;
6
7
use Exception;
8
9
use function http_response_code;
10
11
class UnauthorizedException extends Exception
12
{
13
    public function __construct()
14
    {
15
        parent::__construct('401 Unathorized', 401, null);
16
        http_response_code(401);
17
    }
18
}
19