1 | <?php |
||
10 | final class Error extends AbstractError |
||
11 | { |
||
12 | 1 | public static function error(string $title, int $httpCode): self |
|
16 | |||
17 | 1 | public static function serverError(string $title = 'Internal server error'): self |
|
21 | |||
22 | 1 | public static function forbidden(string $title = 'Forbidden'): self |
|
26 | |||
27 | 1 | public static function notFound(string $title = 'Not Found'): self |
|
31 | |||
32 | 1 | public static function unauthorized(string $title = 'Unauthorized'): self |
|
36 | |||
37 | 1 | public static function invalid(string $title = 'Bad Request'): self |
|
41 | } |
||
42 |