...the whole point of extending plain.html is that you don't need to use html wrapper...

Loose the doctype and html wrappers... also use title block to display error code in page meta title.