reformat http code