use ResultCode 3 for input error