#name   code    message comments    action
SYSTEM_SUCCEED 1000 "success" "服务端请求成功" success
SYSTEM_ERROR 2001 "system error" "系统错误"	ignore
SYSTEM_PRIVATE_KEY_PATH_ERROR 2002 "UUID private key path not set" "UUID密钥路径错误" ignore
SYSTEM_REQUEST_ERROR 2003 "url request error" "请求路径错误" ignore
SYSTEM_SIGN_ERROR 2004 "sign verify error" "验签系统错误exception" ignore
TAIR_DATA_EXPIRED_ERROR 2005 "TAIR_DATA_EXPIRED_ERROR" "tair缓冲失效" ignore
UNKNOWN_ERROR 2010 "unknown error" "未知错误" ignore
INVALID_ARG 2012 "invalid argument" "无效参数" ignore
NULL_POINTER 2013 "null pointer" "空指针" ignore
NO_DATA 2014 "no data" "无数据" ignore
TIMEOUT  2015  "timeout" "超时" ignore
NOT_EXISTS 2016  "not exists" "不存在" ignore
SYSTEM_EXCEPTION 2017  "system excception" "system excception" ignore
SERVICE_UNAVAILABLE 2018  "service unavailable" "service unavailable" ignore
SERVICE_TIMEOUT 2019  "service timeout" "service timeout" ignore

DEV_NOT_LOGIN 3001  "device not login" "设备未登入wsf" relogin
APP_NOT_LOGIN 3002  "app not login" "app 未登入wsf" relogin

PARAM_REQUIRED_MISSING 3009  "parameter required is missing" "缺少必要的参数" abort
PARAM_VERIFY_METHOD_INVALID 3010  "method invalid" "请求方法不正确" abort
PARAM_VERIFY_UUID_CID_INVALID 3011  "cid is invalid" "cid不正确" abort
PARAM_ERROR_CID_ERROR 3012  "cid error" "cid不正确" abort
PARAM_ERROR_NODE_INVALID 3015  "param node error" "请求节点不正确" abort
DEVICE_IS_NOT_EXIST 3019  "device is not exist" "设备不存在(zeroconfig or subdev bind)" ignore
DEV_MODEL_NULL 3020  "model is null" "设备型号为空" abort
DEV_MAC_NULL 3021  "mac is null" "MAC为空" abort
REQDATA_NULL 3024  "reqData is null" "reqdata 为空" abort
METHOD_NULL 3025  "method is null" "请求方法不存在" abort
PARAM_NULL 3026  "param is null" "请求参数为空" abort
PARAM_ERROR 3027  "param error" "请求参数不正确" abort
DEV_ALREADY_REGISTERED 3028  "dev already registered" "设备已注册" ignore
DEV_UUID_REGISTER_ERROR 3029  "register uuid failed" "注册UUID失败" ignore
DEV_ADD_DEVINFO_ERROR 3030  "add dev info error" "添加设备信息失败" ignore
UUID_INIT_PRIVATE_KEY_ERROR 3031  "init private key error" "初始化UUID私钥失败" ignore
UUID_ADD_SIGNITURE_ERROR 3032  "add signiture error" "私钥签名失败" ignore
UUID_ACT_HMAC_ERROR 3033  "ACT UUID HMAC failed" "ACTUUID HMAC失败" ignore
UUID_ADD_FAILED 3034  "UUID add failed" "UUID注册失败" ignore
UUID_ACT_FAILED 3035  "UUID act failed" "UUID激活失败" ignore
UUID_NOT_REGISTERED 3036  "UUID not registered" "UUID未注册" ignore
UUID_IS_INVALID 3037  "invalid uuid" "无效UUID" relogin

SUBDEV_UUID_IS_INVALID 3038  "invalid subdevice uuid" "无效子设备UUID" subdev
SERVICE_IS_INVALID 3039  "invalid service" "无效service" ignore
REGISTER_NOT_MATCH_UUIDGEN 3040 "when register not match uuidgen in model table" "null" abort
REGISTER_SN_LENGTH_SMALL 3041 "register sn length too small  need 6 bytes" "null" abort
REGISTER_MAC_LENGTH_SMALL 3042 "register mac length too small  need 6 bytes" "null" abort
REGISTER_SN_LENGTH_OVER 3043 "register sn is over length  less than 128" "null" abort
UUID_GEN_NOT_SUPPORT 3044 "uuid gen only support mac or sn" "null" abort
SN_HAS_ILLEGAL_CHAR 3045 "sn has illegal characters" "null" abort
DEVICE_IDENTITY_TOKEN_OP_FAIL 3046 "fail to operate device identity token" "null" ignore
DEVICE_IDENTITY_TOKEN_NOT_FOUND 3047 "device identity token not found" "null" ignore
DEVICE_IDENTITY_NOT_FOUND 3048 "device identity not found" "null" ignore
DEVICE_PRODUCT_NOT_FOUND 3049 "device product not found" "null" ignore
REPORT_DATA_IS_NULL 3050  "report data is null" "上报空数据" ignore
DEVICE_IDENTITY_TOKEN_NOT_MATCH 3060 "device identity token not match" "null" ignore
DEVICE_USE_UNMATCHED_ALINK_VERSION 3061 "device's alink version is not match current request" "null" abort
DEVICE_FEATURE_PARSER_NOT_FOUND 3062 "device feature parser not found" "null" ignore
DEVICE_FEATURE_REPOSITORY_NOT_FOUND 3063 "device feature repository not found" "null" ignore

SUB_DEVICE_RELATION_NOT_EXIST 3065 "sub device relation not exist" "null" subdev
SUB_DEVICE_NOT_LOGIN 3066 "sub device not login" "null" subdev

SIGN_TIMESTAMP_TIMEOUT_ERROR 3071  "time stamp timeout" "时间戳不在有效范围内" ignore
SIGN_NO_ACCESS_KEY_ERROR 3072  "request no access key error" "无私有云或者厂商accessKey" 
SIGN_NO_ACCESS_SECRET_ERROR 3073  "request no access secret error" "无私有云或者厂商accessSecret" 
SIGN_VALUE_DIFF_ERROR 3074  "sign value is different" "签名不一致"  ignore
SIGN_CHECK_PARAM_ERROR 3075  "sign check param error" "签名认证模块验证参数失败" 
UNBIND_PARAMETER_IS_NULL 3076  "unbind parameter is null" "解绑所需参数包含空" 
UNBIND_ACCOUNT_NOT_EXISTS 3077  "unbind account does not exist" "解绑帐户并不存在" 
UNBIND_DEVICE_NOT_EXISTS 3078  "unbind device does not exist" "解绑设备并不存在" 
PRIV_ACCOUNT_NOT_EXISTS 3079  "priv account does not exist" "企业云账号并不存在" 
ALINK_ACCOUNT_NOT_EXISTS 3080  "alink account does not exist" "物联网云账号并不存在" 
DEV_MODEL_NOT_EXIST 3081  "dev model does not exist" "设备型号不存在" 
NO_BIND_RELATION 3082  "no bind relation" "没有绑定关系" 
TOKEN_ILLEGAL 3083  "token illegal" "TOKEN非法" 
APP_LOGIN_TOKEN_ILLEGALNOT_LOGIN 3084  "login token illegal" "登陆的TOKEN非法" 
cannot find key-secret 3085  "cannot find key-secret" "找不到key-secret" 
BIND_RELATION_EXIST 3086  "bind relation exists" "绑定关系已经存在"     success

BIND_ERROR_TOO_MANY_ACCOUNT_BIND 3090  "the dev is bind by too many account " "绑定该设备的账号太多" 
BIND_ERROR_BIND_TOO_MANY_UUID 3091  "account bind too many uuid" "账号绑定太多设备" 

DISMISS_RELATION_ERROR 3095  "dismiss account dev relation error" "关系不正确" 
KEY_ISNULL 3096  "key is null" "KEY未传递" 
DECRYPT_REQUEST_ERROR 3097  "decrypt request error" "解密请求体失败" 
DEV_SN_NULL 3099  "sn is null" "SN is null" 

PARAM_TOO_LONG 3023  "param is too long" "请求参数过长" 

DIRECT_PASS_LUA_PREPARE_ERROR 3100  "lua prepare error" "lua脚本准备异常" 
DIRECT_PASS_LUA_EXEC_ERROR 3101  "lua exec error" "lua脚本执行异常" 

ACCOUNT_IS_INVALID 3201  "invalid account" "invalid account" 
PARAMS_TOO_LONG 3202  "params is too long" "invalid account" 
ACCOUNTS_ALREADY_BOUND 3203  "accounts already bound" "账户已经绑定" 

#设备中心 用户鉴权
USER_HAS_NO_DEVICE_RIGHT 3300  "user has no device right" "用户没有设备权限" 

#用户中心 （管理员）
UUID_ALREADY_EXIST_MANAGER 3204  "device exist manager account already" "设备已经有绑定的管理员账号" 
ACCOUNT_NOT_MANAGER 3205  "account is not manager" "账号不是管理员" 
QR_CODE_IS_EXPIRED 3206  "qr code is expired" "二维码过期" 
ACCOUNT_DEVICE_NOT_BIND 3207  "account not bind to device" "账号没有绑定设备" 
QR_CODE_IS_NOT_EXIST 3208  "qr code is not exist" "二维码不存在" 
ACQUIRE_ACT_TIME_ERROR 3209  "acquire act time error" "获取设备最近操作时间失败" 
DATABASE_PROCESS_FAILURE 3210  "acquire act time error" "获取设备最近操作时间失败" 
DEAL_WITH_SAME_ACCOUNT 3211  "deal with the same account" "处理了相同的账号" 
QR_CODE_INVALID 3212  "qr code invalid" "二维码无效" 

#用户中心 (账号关系)
CREATE_SUB_ACCOUNT_ERROR 3399  "create sub account error" "创建子账号失败" 

#用户中心 (token)
TOP_OAUTHCODE_OR_APPKEY_ERROR 3400  "top oauthcode expire or appkey error" "top平台oauthcode、appkey错误或失效" 

#用户中心（权限）
ACCOUNT_IN_BLACKLIST 3500  "account in blacklist" "账号被冻结" 
DEVICE_IN_BLACKLIST 3501  "device in blacklist" "设备被冻结" abort

#用户中心 (AuthToken)
AUTH_TOKEN_GENERATOR_FAILURE 3600  "authToken generator failure" "授权码生成失败" 
AUTH_TOKEN_NOT_EXISTS 3601  "authToken does not exist" "授权码不存在" 
AUTH_TOKEN_EXPIRE_TIME_NOT_EXISTS 3602  "authToken expire time does not exist" "授权码过期时间不存在" 
AUTH_TOKEN_EXPIRED 3603  "authToken expired" "授权码已过期" 
PUBMODEL_MODEL_NO_REL 3606  "product model not bind device model" "产品型号与设备型号没有关联" 
AUTH_TOKEN_HAS_BEEN_CANCLED 3607  "authToken has been canceld" "授权被取消" 
UUID_IS_BIND_AUTHORIZING 3608  "uuid is now bind authorizing" "设备正在绑定授权" 
AUTH_TOKEN_IS_ILLEGAL 3609  "authToken is illegal" "授权码非法" 

ON_OFF_LINE_ERROR 4001  "on off line error" "上下线错误" 
ON_OFF_LINE_NO_OBJ 4002  "no object to on off line" "上下线对象为空" 
ON_OFF_LINE_DEAL_ERROR 4003  "deal on off line error" "处理上下线错误" 
UUID_NO_BIND_ACCOUNTS 4004  "uuid no bind accounts" "设备没有绑定的账号" 

CALLER_TYPE_ERROR 4005  "only support app and cloud" "caller type只允许为app或者cloud" 

#tag
NEED_MAC_SN_AUTH 4100  "need authorized mac or sn" "需要进行mac或sn授权" 
TAG_NOT_EXIST 4110  "tag not ex" "标签不存在标签库" 
DEV_MODEL_PROPERTY_NULL 4111  "model property is null" "设备属性为空" 


#uuid generator
UUID_REPEAT_ERROR 4500 "uuid repeat with uuid existed already" "null"
MAC_REGULAR_ERROR 4501 "mac is not regular" "null"

#433协议
CHALLENGE_KEY_ILLEGAL 4331  "challenge key validation failure" "Challenge key 验证失败" 

#商家后台
USER_NO_RIGHT 4600  "user has no right" "用户没有权限" 

#OPEN APP
METHOD_NOT_AUTHORIZED 10000  "method is not authorized" "方法未授权" 

#case服务错误
CASE_ERROR 5001  "case error" "case操作失败" 
CASE_REDUPLICATE_CASE_NAME 5002  "reduplicate case name" "重复的名称" 
CASE_NOT_EXIST 5003  "case not exist" "不存在的case" 
CASE_RUN_NOT_EXIST 5004  "run not exist" "不存在的case run" 
CASE_ILLEGAL_ACCESS 5005  "illegal access" "非法存取" 

#私有云对接
CLOUD_SET_DEV_STATUS_ERROR 6000  "set cloud dev status error" "控制私有云设备失败" 
CLOUD_GET_DEV_STATUS_ERROR 6001  "get cloud dev status error" "查询私有云设备失败" 
CLOUD_NO_CALLBACK_URL 6002  "cloud no callback url" "没有设置callback url" 
CLOUD_POST_CONTROL_FAIL 6003  "post control msg to private cloud fail" "发送设备控制消息到私有云失败" 
CLOUD_POST_QUERY_FAIL 6004  "post query msg to private cloud fail" "发送设备查询消息到私有云失败" 
CLOUD_LOGIN_FAIL 6005  "login cloud fail" "登入私有云失败" 
CLOUD_BIND_USER_DEV_FAIL 6006  "cloud bind user and device fail" "私有云绑定用户和设备失败" 
CLOUD_RESPONSE_EMPTY 6007  "cloud response body is empty" "私有云返回信息为空" 

#视频云对接
VIDEO_AUTHCODE_CHECK_FAIL 7000  "check authCode failed" "视频设备鉴权失败" 
VIDEO_NOT_EXIST 7001  "video is not exist" "视频不存在" 

#request for gateway
REQUEST_FAILED 12101  "request is failed" "null"
REQUEST_TIMEOUT 12102  "request is timeout" "null"
REQUEST_EXCEPTION 12103  "request is exception" "null"
REQUEST_NOT_CONNECT 12104  "the device is not connected" "null"
REQUEST_DEV_NOT_LOGIN 12105  "the device is not login" "null"
REQUEST_DEV_NO_CONNECTION 12106  "the device has no connection" "null"

#gateway AliOS adapt
IDC_SERVICE_ERROR 12200  "Error to cal idc service" "null"
IDC_SERVICE_GET_FAILURE 12201  "Fail to cal idc service" "null"
IDC_SERVICE_NO_VALUE 12202  "not value in response" "null"
IDC_SERVICE_ID2_BLANK 12203  "id2 is blank" "null"
IDC_SERVICE_APP_PKG_BLANK 12204  "appPackage is blank" "null"
