aboutsummaryrefslogtreecommitdiffhomepage
path: root/WpfTest/HttpResponseStatus/NoHandlerFound.php
blob: 9ceeb0b71054fc6aee1d59e7f770e1ca96c451df (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 NoHandlerFound extends \Exception implements HttpResponseStatus {
    public function __construct(string $path) {
        $this->message = "No handler found for path $path";
    }

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

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