small improvements

* return status code for rendered html pages too (now 404 pages look like they exist, e.g. to search engines)
* expose `@error` as class variable for use in layout