mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -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
|
@ -34,13 +34,13 @@ class Template{
|
|||
}
|
||||
|
||||
public static function Emit403(): void{
|
||||
http_response_code(403);
|
||||
http_response_code(Enums\HttpCode::Forbidden->value);
|
||||
include(WEB_ROOT . '/403.php');
|
||||
exit();
|
||||
}
|
||||
|
||||
public static function Emit404(): void{
|
||||
http_response_code(404);
|
||||
http_response_code(Enums\HttpCode::NotFound->value);
|
||||
include(WEB_ROOT . '/404.php');
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue