mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Set HTTP response code to 500 in case of exceptions
Resolves Seldaek/monolog#1096.
This commit is contained in:
@@ -166,6 +166,10 @@ class ErrorHandler
|
||||
call_user_func($this->previousExceptionHandler, $e);
|
||||
}
|
||||
|
||||
if (!headers_sent() && ini_get('display_errors') === 0) {
|
||||
http_response_code(500);
|
||||
}
|
||||
|
||||
exit(255);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user