ErrorPage
import ErrorPage from "@dertour/ui/components/error-pages"
Server component for any error / system page (404, 400, 500, 501, maintenance, etc.). Resolution order: 1. `entry` prop, if passed 2. `getErrorPageByCode(code)` — match by `errorCode` field 3. `getErrorPage(internalName)` — match by `internalName` field 4. For code "404" only: `getNotFoundPage()` (Site Settings → notFoundPage) 5. Bare ErrorPageShell with hardcoded defaults Hands off rendering to the central `Components` dispatcher so the `Global_Body_Banner_001` (`kind: "errorPage"`) content type maps through the standard registry pattern. Usage examples: app/not-found.tsx → <ErrorPage code="404" /> app/error.tsx → <ErrorPage code="500" /> custom maintenance page → <ErrorPage internalName="Maintenance" />
Loading demo…