Raise a custom exception type, RequestError, on failed calls