I'd rather not do this, but I currently can't think of a better way of doing it for these error pages.