diff --git a/pkg/handler/error.go b/pkg/handler/error.go index c9916a6..48605ad 100644 --- a/pkg/handler/error.go +++ b/pkg/handler/error.go @@ -112,6 +112,7 @@ func (s *Standalone) defaultErrorResponse(w http.ResponseWriter, r *http.Request CorrelationID: middleware.GetReqID(r.Context()), CSS: templates.CSS, DefaultRedirectURI: defaultRedirect, + HttpStatusCode: statusCode, RetryURI: s.Retry(r, loginCookie), }) if err != nil { diff --git a/templates/error.go b/templates/error.go index 8fb9cc3..0bf9fd6 100644 --- a/templates/error.go +++ b/templates/error.go @@ -16,6 +16,7 @@ type ErrorVariables struct { CorrelationID string CSS template.CSS DefaultRedirectURI string + HttpStatusCode int RetryURI string } diff --git a/templates/error.gohtml b/templates/error.gohtml index 7e73fea..d021cc5 100644 --- a/templates/error.gohtml +++ b/templates/error.gohtml @@ -5,28 +5,30 @@ -