`perform_request` method now raises and exception upon an unsuccessful status code.