Throwing exceptions if the RestClient returns one