mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 14:46:46 +02:00
Merge pull request #1106 from hinrik/status_500_exception
Set HTTP response code to 500 in case of exceptions
This commit is contained in:
@@ -170,6 +170,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