code: public boolean isDeviceCodeError() {
          ErrorObject errorObject = getErrorObject();
          if (errorObject == null) {
              return false;
          }
          String code = errorObject.getCode();
          if (code == null) {
              return false;
          }
          switch (code) {
              case "authorization_pending":
              case "slow_down":
              case "access_denied":
              case "code_expired":
                  return true;
              default:
                  return false;
          }
      }
docs: Checks if is a device code error.
  
  @return true if is one of the well known device code error code, otherwise false.