align http status code in case of uncatched exceptions
This commit is contained in:
parent
346a189881
commit
a329d7f4cc
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user