TDCallback.onError() accepts errorCode