From e21f411191fe2a9001137d844aa116c9db8a3b43 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 18 Dec 2024 13:14:48 -0600 Subject: [PATCH] Emit HTTP 405 instead of HTTP 404 when posting to Ebooks --- www/ebooks/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/ebooks/post.php b/www/ebooks/post.php index e94da4f4..0d6ee378 100644 --- a/www/ebooks/post.php +++ b/www/ebooks/post.php @@ -21,7 +21,7 @@ try{ } // POSTing published `Ebooks` is not supported. - Template::ExitWithCode(Enums\HttpCode::NotFound); + Template::ExitWithCode(Enums\HttpCode::MethodNotAllowed); } catch(Exceptions\EbookNotFoundException){ Template::ExitWithCode(Enums\HttpCode::NotFound);