[FEATURE] Create an Exception hierarchy for HTTP Status Exceptions
[Packages/TYPO3.CMS.git] / t3lib / error / class.t3lib_error_debugexceptionhandler.php
index cd83414..4001dbf 100644 (file)
@@ -52,9 +52,7 @@ class t3lib_error_DebugExceptionHandler extends t3lib_error_AbstractExceptionHan
         * @author Robert Lemke <robert@typo3.org>
         */
        public function echoExceptionWeb(Exception $exception) {
-               if (!headers_sent()) {
-                       header("HTTP/1.1 500 Internal Server Error");
-               }
+               $this->sendStatusHeaders($exception);
 
                $filePathAndName = $exception->getFile();