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

use Digitigrade\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";
    }
}