9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-25 17:59:21 +00:00

editor/web: add Teapot preset

This commit is contained in:
Anthony Donlon
2025-12-23 23:03:54 +08:00
parent 3d470d55a4
commit f90fa3501b
2 changed files with 26 additions and 0 deletions

View File

@@ -238,6 +238,7 @@
<option value="empty">Empty</option>
<option value="catastrophic">Catastrophic failure</option>
<option value="working">Server working</option>
<option value="teapot">Teapot</option>
<option value="consensual">Myth of consensual</option>
</select>
</div>

View File

@@ -103,6 +103,31 @@ const PRESETS = {
what_happened: 'This site is still working. And it looks great.',
what_can_i_do: 'Visit the site before it crashes someday.',
},
teapot: {
title: "I'm a teapot",
error_code: '418',
more_information: {
text: 'rfc2324',
link: 'https://www.rfc-editor.org/rfc/rfc2324',
},
browser_status: {
status: 'ok',
location: 'You',
status_text: 'Working',
},
cloudflare_status: {
status: 'ok',
status_text: 'Working',
},
host_status: {
status: 'ok',
location: 'Teapot',
status_text: 'Working',
},
error_source: 'host',
what_happened: "The server can not brew coffee for it is a teapot.",
what_can_i_do: 'Please try a different coffee machine.',
},
consensual: {
title: 'The Myth Of "Consensual" Internet',
error_code: 'lmao',