onFailed

var onFailed: (errorCode: Int?, errorMsg: String?) -> Unit