align http status code in case of uncatched exceptions

This commit is contained in:
Daniel Seifert 2024-07-03 09:35:27 +02:00
parent 346a189881
commit a329d7f4cc

View File

@ -118,7 +118,7 @@ class d3dev extends FrontendController
http_response_code(401);
} catch (Exception $exception) {
echo $exception->getMessage();
http_response_code(400);
http_response_code(500);
} finally {
Registry::getConfig()->pageClose();
die();