<?php
$this->redirectLinks = false;
?>
- <h1><?php echo $this->translate('An error occurred')?></h1>
- <h2><?php echo $this->message ?></h2>
+
+<h1><?php echo $this->translate('An error occurred')?></h1>
+<h2><?php
+ $code = Zend_Controller_Front::getInstance()->getResponse()->getHttpResponseCode();
+ printf('%d: %s', $code, Zend_Http_Response::responseCodeAsText($code));
+?>
+</h2>
+
+ <?php if (isset ($this->message)) {
+ echo '<p>' . $this->message . '</p>';
+ }?>
<?php if (isset($this->exception)): ?>
</pre>
<h3>Request Parameters:</h3>
- <pre><?php echo var_export($this->request->getParams(), true) ?>
+ <pre><?php echo $this->escape(var_export($this->request->getParams(), true)) ?>
</pre>
<?php endif ?>