use page.statusCode() method