Angular error pages template
Fourteen system pages from one catalogue, built from the Styloviz components
Eleven HTTP status pages — 400, 401, 403, 404, 408, 410, 429, 500, 502, 503 and 504 — plus offline, maintenance and coming soon. Each is one entry in ERROR_CATALOGUE (errors.data.ts): its title, message, tips, actions and switches for search, a support reference, a status link, an automatic retry or a notify form. Standalone Angular 21 components, Tailwind CSS 4 and a dark-mode toggle.


- pages, one route each
- 14
- HTTP status codes
- 11
- pages that retry by themselves
- 4
- catalogue entry per page
- 1
Walkthrough · 1:31
What it does, page by page
1. 404 — Page not found
OpenShows the path that was asked for, a search box that hands the query to your search page, links to Documentation and Components, and Go home / Go back.
2. 500 — Server error
OpenA reference such as ERR-… with a Copy button (it says “Select & copy” if the clipboard is refused), Try again, Go home, Report it — an email to support with the code and the reference already filled in — and a link to the status page.
3. 503 — Service unavailable
OpenHeavy load or a deploy window: it tries again by itself after 30 seconds, with a visible countdown and a Stop button, and links the status page.
4. Maintenance
Open“Down for scheduled maintenance”, a Live status button and a Notify me email form that answers “We’ll email you the moment we’re back.”
5. Coming soon
OpenA launch page with the same Notify me form — “You’re on the list — we’ll email you at launch.” — and Go home.
6. 400 — Bad request
OpenExplains that the address or the data sent was malformed, with tips on a stray character or a broken link, and Go back / Go home.
7. 401 — Not signed in
Open“Your session has ended”, with Sign in (to the URL set in errors.config.ts) and Go home.
8. 403 — Forbidden
OpenSigned in but not allowed: Go back, and Request access as an email to support.
9. 408 — Request timed out
Open“That took too long” — nothing was saved — and an automatic retry after 15 seconds that can be stopped.
10. 410 — Gone
OpenRemoved on purpose and not coming back: says refreshing will not help and offers the same search and links as the 404.
11. 429 — Too many requests
OpenRequests paused briefly, nothing lost: a 30-second countdown before it tries once more, and a tip to slow down a script that retries on your behalf.
12. 502 — Bad gateway
OpenA service upstream answered badly: a copyable reference, the status link and an automatic retry after 20 seconds.
13. 504 — Gateway timeout
OpenThe request may or may not have completed, so it warns to check anything that charges or sends before retrying; a reference and the status link.
14. Offline
Open“You’re offline” — and it listens for the browser’s online event, so the page changes to “You’re back online.” with a Reload button the moment the connection returns.
Built from Styloviz components
The template is a composition of the same packages you install from npm — nothing in it is a one-off copy of a component.
| Component | Package | Used for |
|---|---|---|
| sv-button | @styloviz/button | every action, from Go home to Notify me |
| sv-input-field | @styloviz/input-field | the 404 / 410 search and the notify email |
| ThemeService | @styloviz/core | the light / dark toggle |
What it would cost to build
Our estimate for building the same thing from scratch is 3–5 days for one experienced Angular developer — roughly 25–40 hours for the catalogue, the shared page, the retry countdowns, the reference and copy, the connection watcher, the notify form and the specs. It is an estimate, not a measurement.
Questions
How do I add another error page?
Add its key to ErrorKey and an entry to ERROR_CATALOGUE in errors.data.ts , add one codeRoute(…) line in errors.routes.ts , and add the key to the page list in errors-layout.component.ts if it should appear in the switcher. The shared page renders it.
Does the notify form send email?
Not by itself. With ERRORS_API.baseUrl set in errors.config.ts it POSTs { email } to notify on your API; left empty, it waits briefly and shows the confirmation, so the form is mocked.
Where do the status, sign-in and support links go?
To ERRORS_STATUS_URL , ERRORS_SIGN_IN_URL and ERRORS_BRAND.supportEmail in errors.config.ts , alongside the search URL and the 404 suggestion links. Change them there and every page follows.
Which Angular and Tailwind versions does it need?
Angular 21 or 22 with standalone components and signals, and Tailwind CSS 4. The download is a complete Angular project: npm install && npm start .
What license covers it?
The Errors template is free under the MIT license, like the free Styloviz packages it imports — download it without a license key.
Looking for something else? See every template