Change throwing String to throwing ApiRequestError

TBR=kustermann@google.com
BUG=

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