protected static function handleHtml($statusCode, $code, $message, $file, $line)
    {
        $file = '';
        $line = '';

        if (false === headers_sent($file, $line)) {
            header('HTTP/'.Doozr_Http::VERSION_1_1.' '.$statusCode.' '.$message);
        }

        // Show the message
        echo sprintf('<h1>%s %s</h1>', $code, $message);
    }
protected static function handleHtml($statusCode, $code, $message, $file, $line)
    {
        $file = '';
        $line = '';

        if (false === headers_sent($file, $line)) {
            header('HTTP/'.Doozr_Http::VERSION_1_1.' '.$statusCode.' '.$message);
        }

        // Show the message
        echo sprintf('<h1>%s %s</h1>', $code, $message);
    }
protected static function handleHtml ( $ statusCode , $ code , $ message , $ file , $ line ) { $ file = '' ; $ line = '' ; if ( false === headers_sent ( $ file , $ line ) ) { header ( 'HTTP/' . Doozr_Http :: VERSION_1_1 . ' ' . $ statusCode . ' ' . $ message ) ; } // Show the message echo sprintf ( '<h1>%s %s</h1>' , $ code , $ message ) ; }
Output of exception for HTML ready environments.

@param int    $statusCode HTTP status code of the exception
@param int    $code       Code of the exception
@param string $message    Message of the exception
@param string $file       File where exception was thrown
@param int    $line       Line number where exception was thrown

@author Benjamin Carl <opensource@clickalicious.de>
Output of exception for HTML ready environments .