From cfd1e579bcb0cb9ecae7c200c93289b1aad0a839 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Fri, 30 Sep 2022 16:44:43 +0000 Subject: [PATCH 1/3] feat: Add static error page --- site/static/error.html | 137 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 site/static/error.html diff --git a/site/static/error.html b/site/static/error.html new file mode 100644 index 0000000000000..9de74090c06c5 --- /dev/null +++ b/site/static/error.html @@ -0,0 +1,137 @@ + + + + + + + Codestin Search App + + + +
+ + + + + + + + + + + + + + + + +

502 - Bad Gateway

+

No service is running on port 3000. Make sure your process is running and try again.

+
+ + Back to site +
+
+ + + + From c0663185518afdef2a437c1785a11e8bb3b0d4a9 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Sat, 1 Oct 2022 10:15:55 +0000 Subject: [PATCH 2/3] feat: add go template variables to error.html --- site/static/error.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/site/static/error.html b/site/static/error.html index 9de74090c06c5..c047d9ca3dfab 100644 --- a/site/static/error.html +++ b/site/static/error.html @@ -1,10 +1,14 @@ +{{/* + This template is used by application handlers to render friendly error pages + when there is a proxy error (for example, when the target app isn't running). +*/}} - Codestin Search App + Codestin Search App