IPTP Developer

Developer

  • Getting started
    • Docker
    • MarkDown
    • Merge
  • ESB
    • Configuration
  • XM
    • API
    • Chats
    • ERP Integration
    • Messages
    • Sync
  • IPTP ID
    • Integration
  • Ugene
    • API
    • Error codes
    • How create plugin
  • Live assistance api
    • API

Structure and description of the error code and message list

1. Error Server: 000-### -------------------------------------------------------------
        "000000": "Error Internal Server",
        "000001": "Encryption parameters configuration failed",

2. Error Database: 001-### -----------------------------------------------------------
    2.1. Error Connection database: 001-0##
        "001000": "Cannot Open Connection to Database",
        "001001": "Cannot Close Connection to Database",

    2.2. Error Create database: 001-1##
        "001100": "Cannot create new user",
        "001101": "Cannot create new hash",
        "001102": "Create account admin fail",
        "001103": "Create config for admin fail",

    2.3. Error Update database: 001-2##
        "001200": "Failed to update users",
        "001201": "Failed to update user hash",
        "001202": "Failed to update user config",

    2.4. Error Delete database: 001-3##
        "001300": "Failed to delete a hash record",

    2.5. Error Query database: 001-4##
        "001400": "Record Not Found",
        "001401": "Error Conflict Data",
        "001402": "Email already exists",
        "001403": "User not found",
        "001404": "Username or Email incorrect",
        "001405": "Username already exists",
        "001406": "The hash string has expired",
        "001407": "User has been locked",
        "001408": "Could not find any record with UID",
        "001409": "An error occurred while retrieving data from the database",
        "001410": "Passwords do not match",

3. Error Module: 002-### --------------------------------------------------------------
    "002000": "Module Not Found",
    "002001": "Cannot call the module constructor",
    "002002": "The module state is not ready to run",
    "002003": "API Not Found",
    "002004": "Plugin Not Found",
    "002005": "Module Status Fail",

4. Error Verify Parameter: 003-### ----------------------------------------------------
    "003000": "Cannot get parameter from the request body from the client",
    "003001": "Verify username fail",
    "003002": "Verify email fail",
    "003003": "Verify password fail",
    "003004": "Verify fullname fail",
    "003005": "Incorrect email format",
    "003006": "Current password cannot be the same as new password",
    "003007": "Verify value status fail",
    "003008": "The password is not strong enough",
    "003009": "Verify sort fail",
    "003010": "Verify filter fail",
    "003011": "Verify pagesize fail",
    "003012": "Verify pageno fail",
    "003013": "Verify hash fail",
    "003014": "Verify UID fail",
    "003015": "New password cannot be the same as old password",

5. Error Authentication: 004-### ------------------------------------------------------
    "004000": "Forbidden Error",
    "004001": "Generate token failed",
    "004002": "Remove token failed",
    "004003": "The header of request is incorrect",
    "004004": "Validate token is incorrect",
    "004005": "Token does not have administrator rights",

6. Error Redis and Memcached: 005-### -------------------------------------------------
    "005000": "Feature not available",
    "005001": "Remove Registrstion Plugin Fail",
    "005002": "Store Config On Memcached have a error",
    "005100": "User Session Incorrect",
    "005101": "Could not connect to memcache",
    "005102": "Could not added a key to memcache",

7. Error Mailler: 006-### -------------------------------------------------------------
	"006000": "Send Mail has error",

8. Error Config: 007-### --------------------------------------------------------------
	"007000": "This function is currently off",
	"007001": "confirm-email configuration is not enabled",

9. Error Exception: 009-### -----------------------------------------------------------
        "009001": "Error Exception",

10. Success Plugin: 100-### -----------------------------------------------------------
    10.1. Success plugin with parameter: 100-1##
        "100001": "Successfully created a user account",
        "100002": "Successful data retrieval",
        "100003": "Password recovery request has been received, please confirm via email",
        "100004": "Logged in successfully",
        "100005": "Password recovery confirmation successful",
        "100006": "Confirm successful account creation",
        "100007": "Resend confirmation email successfully",
        "100008": "Changed Email Success",
        "100009": "Password changed successfully",
        "100010": "Delete account success",
        "100011": "Logout account successfully",
        "100012": "Get list users successfully",
        "100013": "Switch two authentication factor successfully",

	10.2. Success plugin with parameter: 100-1##
        "100100": "Account creation and successful confirmation email",
        "100101": "Store Config to Memcached Success",
        "100102": "Create Registration Plugin Success"
        "100103": "Remove Registration Plugin Success"