Files
website/templates/error/429.html
H3ALY 2498b33a9c Refactor: Centralize template loading and improve error handling
- Introduced helpers.LoadTemplateFiles() for consistent layout + topbar rendering
- Replaced repeated template.ParseFiles() calls across handlers
- Created generic RenderError(w, r, statusCode) helper
- Replaced old Render403 with flexible RenderError
- Updated AdminOnly middleware to render 403 errors with context
- Added 500.html template for graceful panic fallback
- Prepared structure for future error codes (404, 429, etc.)
2025-04-02 09:12:13 +01:00

7 lines
295 B
HTML

{{ define "content" }}
<div class="container py-5 text-center">
<h1 class="text-danger">🚫 Too Many Requests</h1>
<p>Whoa there! You're making requests too quickly. Please slow down and try again in a moment.</p>
<a href="/" class="btn btn-primary mt-3">Back to home</a>
</div>
{{ end }}