updates a Response class