Add 401 http code to buildPage