diff options
Diffstat (limited to 'WpfTest/HttpReturnStatus/NoHandlerFound.php')
| -rw-r--r-- | WpfTest/HttpReturnStatus/NoHandlerFound.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/WpfTest/HttpReturnStatus/NoHandlerFound.php b/WpfTest/HttpReturnStatus/NoHandlerFound.php new file mode 100644 index 0000000..d914ca2 --- /dev/null +++ b/WpfTest/HttpReturnStatus/NoHandlerFound.php @@ -0,0 +1,18 @@ +<?php +namespace WpfTest\HttpReturnStatus; + +use WpfTest\HttpReturnStatus; + +class NoHandlerFound extends \Exception implements HttpReturnStatus { + 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"; + } +}
\ No newline at end of file |
