Add a few status code check methods and remove logging