log the status code