log the http code too