aboutsummaryrefslogtreecommitdiffhomepage
path: root/WpfTest/HttpResponseStatus/NotFound.php
blob: b36d0a373275ef020d782039c7579d04d1cb6cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
namespace WpfTest\HttpResponseStatus;

use WpfTest\HttpResponseStatus;

class NotFound extends \Exception implements HttpResponseStatus {
    public function __construct(?string $reason) {
        $this->message = $reason ?? 'Request was handled but no appropriate resource found';
    }

    public function httpCode(): int {
        return 404;
    }

    public function httpReason(): string {
        return "Not Found";
    }
}