Error Code Mapping
Error Code Mapping for 5.x.x Versions
-
In the (X)HTML file, error handling is structured with separate
<div>
elements to display specific details, including:- Subsystem
- Error Code
- Error Message
- Error Parameters
-
The
message_en.properties
file in thekobil-lite
theme will map these error messages using properties like this:0004=User_not_found
-
The backend, after resolving the locale and theme using the key
user_not_found
, sends the code 0004 to the frontend viamessage.summary
. The frontend will then resolve and display this message as User not found throughmsg(message.summary)
.
Example HTML Error Divs
<div id="error-subsystem">580</div>
<div id="error-code">0012</div>
<div id="error">Invalid password: must not be equal to any of the last {0} passwords.</div>
<div id="error-parameters">
<ol>
<li id="policy-param">3</li>
</ol>
</div>
Error Codes and Messages
Subsystem | Code | Error Message |
---|---|---|
580 | 001 | Username is not provided |
580 | 002 | Password is not provided |
580 | 003 | Activation Code is not provided |
580 | 004 | User not found |
580 | 005 | Activation Code is expired |
580 | 006 | Activation Code is invalid |
580 | 007 | Current password is not provided |
580 | 008 | New password is not provided |
580 | 009 | Old password is incorrect |
580 | 010 | Password is incorrect |
580 | 0011 | Invalid Credentials, You have only {0} attempts remaining |
580 | 0012 | Invalid password: must not be equal to any of last {0} passwords. |
580 | 0013 | Invalid password: minimum length {0}. |
580 | 0014 | Invalid password: maximum length {0}. |
580 | 0015 | Invalid password: must contain at least {0} lower case characters. |
580 | 0016 | Invalid password: must contain at least {0} numerical digits. |
580 | 0017 | Invalid password: must contain at least {0} upper case characters. |
580 | 0018 | Invalid password: must contain at least {0} special characters. |
580 | 0019 | Invalid password: must not be equal to the username. |
580 | 0020 | Invalid password: must not be equal to the email. |
580 | 0021 | Invalid password: fails to match regex pattern(s). |
580 | 0022 | Invalid password: password is blacklisted. |
580 | 0023 | Invalid password: new password does not match password policies. |
580 | 0026 | User is temporarily locked for {0} seconds. |
580 | 0027 | User is currently disabled, Please contact admin. |
580 | 0028 | Something went wrong! Please try again later. |
580 | 0029 | The page you are looking for is expired, please click Continue to proceed. |
580 | 0030 | An internal server error has occurred. |
580 | 0031 | Passwords don't match. |
580 | 0032 | You are already authenticated as a different user {0} in this session. Please log out first. |
580 | 0033 | Cookie not found. Please make sure cookies are enabled in your browser. |
580 | 0034 | Username is already taken, provide a unique username. |
580 | 0035 | Alias Username is required. |
580 | 0036 | Unexpected error when handling authentication request to identity provider. |