aboutsummaryrefslogtreecommitdiffhomepage
path: root/WpfTest/HttpReturnStatus/NotFound.php
diff options
context:
space:
mode:
Diffstat (limited to 'WpfTest/HttpReturnStatus/NotFound.php')
-rw-r--r--WpfTest/HttpReturnStatus/NotFound.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/WpfTest/HttpReturnStatus/NotFound.php b/WpfTest/HttpReturnStatus/NotFound.php
deleted file mode 100644
index eef23b3..0000000
--- a/WpfTest/HttpReturnStatus/NotFound.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?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";
- }
-} \ No newline at end of file