This project is an HTML renderer that produces error pages styled after the familiar design of a standard CDN provider (such as Cloudflare). It accepts customizable parameters for error code, description, location, and request metadata, and outputs a self-contained HTML page that can be served directly by web servers or reverse proxies as a branded error response.
The renderer is built using Go templates with built-in injection prevention, and it embeds all styling inline within the HTML head to eliminate external dependencies. It applies automatic whitespace minification to reduce output size, and it uses a static status code lookup table to provide appropriate titles, descriptions, and icons for common HTTP errors. Configuration is handled through typed struct fields with validation constraints, ensuring safe input before rendering.
Beyond CDN-style pages, the tool supports generating custom error pages with configurable status codes and messages, making it applicable for static site error handling and web server error page customization. The output is a plain HTML file suitable for any environment that needs a consistent, branded error display.