Raise an exception when an RPC error has been reported on API calls

Normal API failures are reported via an application error, but issues, such as
invalid ticket-id are reported as RPC failures.

R=wibling@google.com

Review URL: https://codereview.chromium.org//766933002