diff --git a/weinfo.html b/weinfo.html
index a761d2f..e4a001e 100644
--- a/weinfo.html
+++ b/weinfo.html
@@ -1,8 +1,8 @@
-
-
+
+
Bal Server List
@@ -11,22 +11,22 @@
@@ -91,8 +91,19 @@
document.getElementById('wetld').innerHTML = DOMPurify.sanitize(data.tld||'—');
document.getElementById('webalance').innerHTML = data.balance != null ? data.balance : '—';
document.getElementById('weversion').innerHTML = data.version||'—';
- document.getElementById('westatus').innerHTML = DOMPurify.sanitize(data.status||'—');
- document.getElementById('weupdate').innerHTML = data.last_update||'—';
+ const statusMap = {
+ 'OK': 'Health check passed',
+ 'TIMEOUT': 'Connection timeout',
+ 'CONNECTION': 'Connection error',
+ 'STATUS': 'HTTP error',
+ 'WRONG REPLY': 'Invalid JSON response',
+ 'REQUEST': 'Request error',
+ 'BODY': 'Body read error',
+ 'DECODE': 'Decode error',
+ 'KO': 'Generic error'
+ };
+ const st = (data.status||'').split(':')[0];
+ document.getElementById('westatus').innerHTML = DOMPurify.sanitize(data.status||'—') + (statusMap[st] ? ' (' + statusMap[st] + ')' : '');
const tableBody = document.querySelector('#wetimes tbody');
tableBody.innerHTML ='';
@@ -130,8 +141,6 @@
}
getWeInfo();
-
-