code: protected boolean recursiveCheckForCode(Throwable e, int code) {
      GoogleJsonResponseException jsonException = getJsonResponseExceptionOrNull(e);
      if (jsonException != null) {
        return getHttpStatusCode(jsonException) == code;
      }
      return false;
    }
docs: Recursively checks getCause() if outer exception isn't
  an instance of the correct class.