Sanitize http code earlier, so that send gets the correct value