Feature: Fehlerseiten 401, 403, 500, 502, 503, 504
Gemeinsames Layout in components/error-page.tsx, 404 darauf umgestellt. Jede Route app/<code>/page.tsx erzeugt landingpage/<code>.html; die Deploy-Skripte kopieren alle Fehlerseiten in den Webroot. README dokumentiert die nötigen ErrorDocument-Zeilen (Server-Konfig unverändert). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ea2bcfbd27
commit
9c7e1ce4db
1 changed files with 427 additions and 120 deletions
33
app/502/page.tsx
Normal file
33
app/502/page.tsx
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { ErrorPage, Cmd, Out, Err } from '@/components/error-page'
|
||||
|
||||
export const metadata = {
|
||||
title: '502 – Bad Gateway | Jamulix',
|
||||
description: 'Der Server hinter dem Server schweigt.',
|
||||
robots: { index: false, follow: false },
|
||||
}
|
||||
|
||||
export default function BadGateway() {
|
||||
return (
|
||||
<ErrorPage
|
||||
code={502}
|
||||
label="Bad Gateway"
|
||||
title="Der Server hinter dem Server schweigt."
|
||||
terminal={
|
||||
<>
|
||||
<Cmd>ping -c 3 backend</Cmd>
|
||||
<Out>--- backend ping statistics ---</Out>
|
||||
<Err>3 packets transmitted, 0 received, 100% packet loss</Err>
|
||||
<Cmd>curl http://localhost:8080/</Cmd>
|
||||
<Err>curl: (7) Failed to connect to localhost port 8080: Connection refused</Err>
|
||||
<Cmd>echo "Hallo? Jemand da?" > /dev/backend</Cmd>
|
||||
<Out>…</Out>
|
||||
</>
|
||||
}
|
||||
tip={<>Tipp: Der Dienst startet meist von selbst neu – in ein paar Minuten nochmal versuchen.</>}
|
||||
>
|
||||
Der Webserver ist da und hat brav weitergefragt – aber die Anwendung
|
||||
dahinter antwortet gerade nicht. Wahrscheinlich startet sie neu oder
|
||||
denkt über ihr Leben nach.
|
||||
</ErrorPage>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue