PUBAPI-1024 - improve error reporting for certain kinds of errors returned
by cloudapi.