mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Emit HTTP 405 instead of HTTP 404 when posting to Ebooks
This commit is contained in:
parent
806939ca49
commit
e21f411191
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue