From 4c7bde1400820f36caf8b2a5374007384c3018f3 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 9 Dec 2024 21:31:54 +0000 Subject: rename to Digitigrade / PawPub :3 --- WpfTest/HttpResponseStatus/BadRequest.php | 18 ----------------- WpfTest/HttpResponseStatus/InternalServerError.php | 23 ---------------------- WpfTest/HttpResponseStatus/NoHandlerFound.php | 18 ----------------- WpfTest/HttpResponseStatus/NotFound.php | 18 ----------------- 4 files changed, 77 deletions(-) delete mode 100644 WpfTest/HttpResponseStatus/BadRequest.php delete mode 100644 WpfTest/HttpResponseStatus/InternalServerError.php delete mode 100644 WpfTest/HttpResponseStatus/NoHandlerFound.php delete mode 100644 WpfTest/HttpResponseStatus/NotFound.php (limited to 'WpfTest/HttpResponseStatus') diff --git a/WpfTest/HttpResponseStatus/BadRequest.php b/WpfTest/HttpResponseStatus/BadRequest.php deleted file mode 100644 index 74fab3c..0000000 --- a/WpfTest/HttpResponseStatus/BadRequest.php +++ /dev/null @@ -1,18 +0,0 @@ -message = $reason ?? 'Request does not conform to expectations'; - } - - public function httpCode(): int { - return 400; - } - - public function httpReason(): string { - return "Bad Request"; - } -} \ No newline at end of file diff --git a/WpfTest/HttpResponseStatus/InternalServerError.php b/WpfTest/HttpResponseStatus/InternalServerError.php deleted file mode 100644 index 11b67f3..0000000 --- a/WpfTest/HttpResponseStatus/InternalServerError.php +++ /dev/null @@ -1,23 +0,0 @@ -message = $reason::class . ': ' . $reason->getMessage(); - if (isset($context)) { - $this->message .= " [$context]"; - } - if (GlobalConfig::getInstance()->shouldReportTraces()) { - $this->message .= "\n" . $reason->getTraceAsString(); - } - } - public function httpCode(): int { - return 500; - } - public function httpReason(): string { - return "Internal Server Error"; - } -} \ No newline at end of file diff --git a/WpfTest/HttpResponseStatus/NoHandlerFound.php b/WpfTest/HttpResponseStatus/NoHandlerFound.php deleted file mode 100644 index 9ceeb0b..0000000 --- a/WpfTest/HttpResponseStatus/NoHandlerFound.php +++ /dev/null @@ -1,18 +0,0 @@ -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 diff --git a/WpfTest/HttpResponseStatus/NotFound.php b/WpfTest/HttpResponseStatus/NotFound.php deleted file mode 100644 index b36d0a3..0000000 --- a/WpfTest/HttpResponseStatus/NotFound.php +++ /dev/null @@ -1,18 +0,0 @@ -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 -- cgit v1.3