mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 12:26:39 -04:00
Use HTTP code enums instead of ints
This commit is contained in:
parent
3f822b85c3
commit
3050ab7219
28 changed files with 56 additions and 56 deletions
|
@ -46,7 +46,7 @@ catch(Exceptions\LoginRequiredException){
|
|||
}
|
||||
}
|
||||
catch(Exceptions\InvalidPermissionsException){
|
||||
http_response_code(403);
|
||||
http_response_code(Enums\HttpCode::Forbidden->value);
|
||||
}
|
||||
catch(Exceptions\InvalidFileException){
|
||||
Template::Emit404();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue