From 92d5a4fcd74c4084607461d53dab1a742d8a813b Mon Sep 17 00:00:00 2001 From: jaygiang Date: Wed, 29 Jul 2026 13:39:27 -0700 Subject: [PATCH 1/2] feat: add static fallback error page for Kratos --- docs/kratos/fallback/error.mdx | 17 -- src/static/kratos/fallback/error.html | 297 ++++++++++++++++++++++++++ 2 files changed, 297 insertions(+), 17 deletions(-) delete mode 100644 docs/kratos/fallback/error.mdx create mode 100644 src/static/kratos/fallback/error.html diff --git a/docs/kratos/fallback/error.mdx b/docs/kratos/fallback/error.mdx deleted file mode 100644 index 2e51cfb4c9..0000000000 --- a/docs/kratos/fallback/error.mdx +++ /dev/null @@ -1,17 +0,0 @@ ---- -id: error -title: This should be the Error UI ---- - -You ended up here because you didn't set the following configuration value: - -```yaml title="path/to/kratos/config.yml" -selfservice: - flows: - error: - ui_url: http://my-app.com/error -``` - -You can set this configuration value using environment variable `SELFSERVICE_FLOWS_ERROR_UI_URL` as well! - -If you don't know what that means, head over to [User-Facing Error](../self-service/flows/user-facing-errors.md)! diff --git a/src/static/kratos/fallback/error.html b/src/static/kratos/fallback/error.html new file mode 100644 index 0000000000..7f5f41f6fe --- /dev/null +++ b/src/static/kratos/fallback/error.html @@ -0,0 +1,297 @@ + + + + + + + This should be the Error UI | Ory + + + + + + +
+ + + +
+ +
+

This should be the Error UI

+ +

+ You ended up here because you didn't set the following configuration + value: +

+ +
+
path/to/kratos/config.yml
+
selfservice:
+  flows:
+    error:
+      ui_url: http://my-app.com/error
+
+ +

+ You can set this configuration value using environment variable + SELFSERVICE_FLOWS_ERROR_UI_URL as well! +

+ +

+ If you don't know what that means, head over to + User-Facing Error! +

+
+ + + + From 39c05196ed4c2902994730f53e08d1177b330f6d Mon Sep 17 00:00:00 2001 From: jaygiang Date: Wed, 29 Jul 2026 15:32:00 -0700 Subject: [PATCH 2/2] fix: update color scheme to light only --- src/static/kratos/fallback/error.html | 43 +++++++++++---------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/src/static/kratos/fallback/error.html b/src/static/kratos/fallback/error.html index 7f5f41f6fe..222887f0cf 100644 --- a/src/static/kratos/fallback/error.html +++ b/src/static/kratos/fallback/error.html @@ -3,7 +3,7 @@ - + This should be the Error UI | Ory