update error page

This commit is contained in:
mlsmaycon
2026-02-10 16:54:05 +01:00
parent b16d63643c
commit 08d3867f41
5 changed files with 30 additions and 13 deletions

View File

@@ -160,3 +160,17 @@ func ServeErrorPage(w http.ResponseWriter, r *http.Request, code int, title, mes
},
}, code)
}
// ServeAccessDeniedPage renders a simple access denied page without the connection status graph.
func ServeAccessDeniedPage(w http.ResponseWriter, r *http.Request, code int, title, message, requestID string) {
ServeHTTP(w, r, map[string]any{
"page": "error",
"error": map[string]any{
"code": code,
"title": title,
"message": message,
"requestId": requestID,
"simple": true,
},
}, code)
}