pomerium/internal/frontend/assets/html/error.go.html
bobby 9215833a0b
control plane: add request id to all error pages (#2149)
* controlplane: add request id to all error pages

- use a single http error handler for both envoy and go control plane
- add http lib style status text for our custom statuses.

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2021-04-28 15:04:44 -07:00

45 lines
1.2 KiB
HTML

{{define "error.html"}}
<!DOCTYPE html>
<html lang="en" charset="utf-8">
<head>
<title>{{.Status}} - {{.StatusText}}</title>
{{template "header.html"}}
</head>
<body>
<div class="inner">
<div class="header clearfix">
<div class="heading"></div>
</div>
<div class="content">
<div class="white box">
<div class="largestatus">
<img class="status-bubble" src="{{dataURL "/.pomerium/assets/img/error-24px.svg"}}" xmlns="http://www.w3.org/2000/svg" />
<div class="title-wrapper">
<span class="title">{{.Status}} {{.StatusText}}</span>
<label class="status-time">
<span>{{.Error}}</span>
</label>
</div>
</div>
<div class="category-link">
{{if .CanDebug}}
If you should have access, contact your administrator with your
{{if .RequestID }}
request id {{.RequestID}}
{{end}}
{{if and .RequestID .DebugURL }}
and
{{end}}
{{if .DebugURL }}
<a href="{{.DebugURL}}">session details</a>.
{{end}}
{{end}}
</div>
</div>
</div>
</div>
</body>
</html>
{{end}}