Add diagnostic information to RestClient exceptions