log the response code