2021-11-08 19:15:57 -06:00
|
|
|
{{ $code := placeholder "http.error.status_code" -}}
|
|
|
|
{{ $text := placeholder "http.error.status_text" -}}
|
2021-11-19 17:33:05 -06:00
|
|
|
{{ $full_text := printf "%s %s" (placeholder "http.error.status_code") (placeholder "http.error.status_text") -}}
|
2021-11-08 19:15:57 -06:00
|
|
|
{{ $host := placeholder "http.request.host" -}}
|
2022-05-23 03:06:20 -05:00
|
|
|
{{ $img_url := (printf "https://http.cat/%s.jpg" $code) -}}
|
2021-11-08 19:15:57 -06:00
|
|
|
<html>
|
|
|
|
<head>
|
2021-11-19 17:33:05 -06:00
|
|
|
<title>{{ $full_text }}</title>
|
2021-11-08 19:15:57 -06:00
|
|
|
|
2021-11-19 17:33:05 -06:00
|
|
|
<meta name="title" content="{{ $full_text }}" />
|
|
|
|
<meta name="description" content="{{ $full_text }}" />
|
2021-11-08 19:15:57 -06:00
|
|
|
|
2021-11-19 17:33:05 -06:00
|
|
|
<meta property="og:title" content="{{ $full_text }}" />
|
|
|
|
<meta property="og:description" content="{{ $full_text }}" />
|
2021-11-08 19:15:57 -06:00
|
|
|
<meta property="og:image" content="{{ $img_url }}"/>
|
|
|
|
<meta property="og:site_name" content="{{ $host }}" />
|
|
|
|
|
|
|
|
<meta name="twitter:card" content="summary"/>
|
|
|
|
<meta name="twitter:image" content="{{ $img_url }}"/>
|
2021-11-19 17:33:05 -06:00
|
|
|
<meta name="twitter:title" content="{{ $full_text }}" />
|
|
|
|
<meta name="twitter:description" content="{{ $full_text }}" />
|
2021-11-08 19:15:57 -06:00
|
|
|
</head>
|
|
|
|
<body bgcolor="black" text="white">
|
|
|
|
<center>
|
2021-11-19 17:33:05 -06:00
|
|
|
<h1>{{ $full_text }}</h1>
|
2022-05-05 16:19:15 -05:00
|
|
|
<img src="{{ $img_url }}" alt="cat" />
|
2021-11-08 19:15:57 -06:00
|
|
|
</center>
|
|
|
|
</body>
|
|
|
|
</html>
|