add header and http code getter