系统通用错误代码

const ErrorCode = {
    RESULT_OK: 0,
    RESULT_FAILED: 1,
    RESULT_WAIT_INIT: 2,
    RESULT_ERROR_STATE: 3,
    RESULT_INVALID_TYPE: 4,
    RESULT_SCRIPT_ERROR: 5,
    RESULT_NO_IMP: 6,
    RESULT_ALREADY_EXIST: 7,
    RESULT_NEED_SYNC: 8,
    RESULT_NOT_FOUND: 9,
    RESULT_EXPIRED: 10,
    RESULT_INVALID_PARAM: 11,
    RESULT_PARSE_ERROR: 12,
    RESULT_REQUEST_ERROR: 13,
    RESULT_NOT_SUPPORT: 14,
    RESULT_TIMEOUT: 15,
    RESULT_EXCEPTION: 16,
    RESULT_INVALID_FORMAT: 17,
    RESULT_UNKNOWN_VALUE: 18,
    RESULT_INVALID_TOKEN: 19,
    RESULT_INVALID_SESSION: 21,
    RESULT_OUT_OF_LIMIT: 22,
    RESULT_PERMISSION_DENIED: 23,
    RESULT_OUT_OF_MEMORY: 24,
    RESULT_INVALID_STATE : 25,
    RESULT_NO_TARGET_RUNTIME: 30,
    RESULT_INVALID_RULES: 31,
    RESULT_POST_FAILED: 40,
    RESULT_MONGO_ERROR: 50,
    RESULT_CONNECT_ERROR: 51,
    RESULT_CREATE_USER_ERROR: 52,
    RESULT_REMOVE_USER_ERROR: 53,
    RESULT_SIGNUP_FAILED: 60,
    RESULT_SIGNIN_FAILED: 61,
    RESULT_INVALID_CONFIG: 80,
    RESULT_INVALID_VERSION: 81,
    RESULT_UNMATCH_RUNTIME: 82,
    RESULT_PENDING: 90,
    RESULT_REACH_LIMIT: 100,
    RESULT_LEVEL_UNMATCH: 101,
    RESULT_DB_QUERY_ERROR: 110,
    RESULT_DB_OPEN_FAILED: 111,
    RESULT_DB_TRANSACTION_FAILED: 112,
    RESULT_DB_CONDITION_NOT_MATCH: 113,
    RESULT_METHOD_NOT_FOUND: 114,
    RESULT_DB_DATA_NON_CONSISTENCY: 115,
    RESULT_DB_CREATE_CONN_FAILED: 116,
    RESULT_NOT_EMPTY: 180,
    RESULT_LOCK_WRITE: 181,
    RESULT_LOCK_READ: 182,
    RESULT_LOCK_NONE: 183,
    RESULT_LOCK_UNMATCH: 184,
    RESULT_AUTH_FAILED: 185,
    RESULT_RES_DROP: 200,
    RESULT_RES_OFFLINE: 201,
    RESULT_RES_INVALID_STATE: 202,
    RESULT_MYSQL_INSTANCE_NOT_FOUND: 203,
    RESULT_MONGO_INSTANCE_NOT_FOUND: 204,
    RESULT_APP_STOPED: 210,
    RESULT_ZIP_WRITE_FAILED: 220,
    RESULT_ZIP_FILE_NOT_EXSIT: 221,
    RRESULT_ZIP_LOAD_FAILED: 222,
    RESULT_FILESIZE_EXCEED: 230,
    RESULT_UNKNOWN: 255,
};

results matching ""

    No results matching ""