Return tuple from Client query functions to allow caller to pattern match for errors.