From c5a55275d895fe680f1754d94acdeaa7ee3a5239 Mon Sep 17 00:00:00 2001 From: Space-Banane <64922620+Space-Banane@users.noreply.github.com> Date: Fri, 16 Jan 2026 20:56:40 +0100 Subject: [PATCH] Add error handling route for broken server status --- index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/index.js b/index.js index c105dfe..54b02c3 100644 --- a/index.js +++ b/index.js @@ -17,4 +17,18 @@ app.get("/", (_req, res) => { })); }); +app.get("/broken", (_req, res) => { + res.status(200).send(render_cf_error_page({ + "title": "Web server is on fire", + "error_code": "666", + "more_information": { "hidden": true }, + "browser_status": { "status": "error", "status_text": "Ram on fire" }, + "cloudflare_status": { "status": "error", "status_text": "Fiber cable + Shark", location: "Hell" }, + "host_status": { "status": "ok", "location": _req.headers.host, "status_text": "Atleast its not the sysadmin" }, + "error_source": "host", + "what_happened": "
Its HOT in hell
", + "what_can_i_do": "Cry
" + })); +}); + app.listen(3000);