<?php $this->headTitle(sprintf('%d %s', $this->status, $this->reason)); ?>


<?php if ($this->status == 404) : ?>
    <?= $this->partial('error::404', ['lang' => $this->request->getAttribute('layoutInfo')->getLang()]); ?>
<?php else: ?>
    <h1>Oops!</h1>
    <h2>This is awkward.</h2>
    <p>We encountered a <?php echo $this->escapeHtml(sprintf('%d %s', $this->status, $this->reason)); ?> error.</p>    
    <p><?= $this->error->getMessage() ?></p>
<?php endif; ?>
