summaryrefslogtreecommitdiff
path: root/src/application/mystic/forum/utils/RequestUtils.php
diff options
context:
space:
mode:
authorJonas Kohl2024-10-10 17:33:30 +0200
committerJonas Kohl2024-10-10 17:33:30 +0200
commit0dfb819f96bcf162badfc2350ec0f1238a75c233 (patch)
treee0dc6b8122fb5539a91cb5e9f47195fb8ba981c5 /src/application/mystic/forum/utils/RequestUtils.php
parent64b1ec0fabbf7328a79a20ff58502ebfa80fad8b (diff)
Fix incorrect status codev0.4.0feature/file-based-routing
Diffstat (limited to 'src/application/mystic/forum/utils/RequestUtils.php')
-rw-r--r--src/application/mystic/forum/utils/RequestUtils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application/mystic/forum/utils/RequestUtils.php b/src/application/mystic/forum/utils/RequestUtils.php
index 796a476..5c6a485 100644
--- a/src/application/mystic/forum/utils/RequestUtils.php
+++ b/src/application/mystic/forum/utils/RequestUtils.php
@@ -23,7 +23,7 @@ final class RequestUtils {
public static function ensureRequestMethod(string $method): void {
if (!self::isRequestMethod($method)) {
- http_response_code(415);
+ http_response_code(405);
Messaging::error("Invalid request method " . self::getRequestMethod());
exit;
}