Add 404 error handling

This commit is contained in:
2020-06-07 14:28:06 +02:00
parent 494aa76c88
commit 3b3066c83b

View File

@@ -173,7 +173,12 @@ abstract class Main extends PhpObject
}
public static function goTo403() {
header('HTTP/1.1 403 Forbidden');
http_response_code(403);
exit;
}
public static function goTo404() {
http_response_code(404);
exit;
}
}