fix Client interface so api call returns an error