Moved error pages into the template