catch Errno's and RestClient errors and throw a more meaningful error