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

use WpfTest\HttpReturnStatus;

class NotFound extends \Exception implements HttpReturnStatus {
    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";
    }
}