Emit HTTP 405 instead of HTTP 404 when posting to Ebooks

This commit is contained in:
Alex Cabal 2024-12-18 13:14:48 -06:00
parent 806939ca49
commit e21f411191

View file

@ -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);