[Experimental] capture http code nicely