updated error return page to remove jinja template call