Changed the Client class so that it will throw an exception in case the service call returns any HTTP status code other than 200.