Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

error-pages

> DevOps
Open source

Tiny, zero-dep HTTP server & Docker image serving pretty, themeable, localized HTTP error pages — drop-in for Traefik, Nginx, Kubernetes, and more

1.5K stars0 likes1 views
WebsiteGitHub

About

Tiny, zero-dep HTTP server & Docker image serving pretty, themeable, localized HTTP error pages — drop-in for Traefik, Nginx, Kubernetes, and more

</picture>

[!IMPORTANT] If you were on v3 or earlier and want to upgrade to v4, check out the migration guide.

If you ended up here, chances are you would like to replace your HTTP server's default error pages with something more original and eye-catching. That is exactly what this project is designed for - it handles this with minimal effort on your part.

It includes:

  • A collection of HTTP error page designs (each with a unique look), along with the ability to use your own custom templates
  • A lightweight HTTP server for serving these pages that integrates easily into your existing infrastructure
  • A utility for pre-rendering static HTTP error pages

Key features:

  • Both the HTTP server and the static generator are written in Go with zero third-party runtime dependencies (stdlib only - hardcore mode)
    • Supports HTTP/1.1 and HTTP/2 (h2c - cleartext, no TLS required)
    • Returns error responses in the appropriate format (HTML, JSON, XML, plain text) based on client requests
    • Gzip compression for all response formats
    • HTML pages support localization (15+ languages), responsive design (mobile-friendly), and are fully self-contained - all styles and images are embedded directly in the HTML, without loading any external resources
    • Go template-based templating engine
  • Ships as pre-built binaries, a minimal Docker image (rootless, scratch-based), and a ready-to-use Helm chart for Kubernetes
  • Works out of the box with popular reverse proxies and ingress controllers (Nginx, Traefik, etc.)

Built-in templates

The following templates are built-in and available for use without any additional setup/files:

Template name Preview (light) Preview (dark)
app-down
cats
connection
ghost
hacker-terminal
l7
lost-in-space
noise
orient
shuffle
win98

[!NOTE] The cats template is the only one of those that fetches resources (the actual cat pictures) from external servers - all other templates are self-contained.

[!TIP] If you need the pre-rendered static error pages pack, you can download it as a zip or tar.gz archive.

Installation

Download the latest binary for your OS/architecture from the releases page, or use the Docker image:

Registry Image
GitHub Container Registry ghcr.io/tarampampam/error-pages
Quay.io (mirror) quay.io/tarampampam/error-pages
Docker Hub (mirror) tarampampam/error-pages

[!WARNING] Using the latest tag for Docker images is strongly discouraged, as it may introduce backward-incompatible changes during major upgrades. Use versioned tags in the X, X.Y, or X.Y.Z format instead.

[!IMPORTANT] The app is distributed as two separate binaries - error-pages (HTTP server) and builder. Docker tags follow this convention:

  • X.Y.Z (and X.Y, X) - includes the HTTP server
  • X.Y.Z-builder (and X.Y-builder, X-builder) - includes the builder and a pre-rendered error pages pack

Supported image architectures - linux/amd64, linux/arm/v7, linux/arm64, linux/ppc64le, linux/s390x. All images are signed with Cosign using keyless signing (GitHub OIDC).

Helm chart

A Helm chart for Kubernetes is included with each release (download), published on Artifact Hub, and also available via an OCI registry (Helm v3.8+ required):

bash
helm install error-pages \
  oci://ghcr.io/tarampampam/error-pages/charts/error-pages \
  --version X.Y.Z

All supported chart values, examples, and usage instructions can be found at Artifact Hub.

Helm chart sources are located in the deploy/helm directory of the repository.

Integration guides

  • Standalone server or builder usage:

    • Start the HTTP server with a custom template (theme)
    • Generate error pages using built-in or custom templates
  • With Nginx:

    • Customize error pages in your own Nginx Docker image
    • Use Nginx as a reverse proxy with custom error pages
  • With Caddy:

    • Customize error pages in your own Caddy Docker image
    • Use Caddy as a reverse proxy with custom error pages
  • With Traefik:

    • Use Traefik with a local Docker Compose setup
  • With Kubernetes:

    • Use error-pages as the ingress-nginx default backend
    • Use error-pages with Traefik in Kubernetes
    • Use error-pages with NGINX Gateway Fabric in Kubernetes
    • Use error-pages with Envoy Gateway in Kubernetes
    • Use error pages with HAProxy Ingress in Kubernetes

Performance

Measured on loopback (127.0.0.1), single connection, no artificial load (wrk -t1 -c1 -d5s --latency http://127.0.0.1:8080/..., less is better):

Format p50 (typical response time) p90 (90% of responses complete within this time)
HTML 121 µs 262 µs
JSON 51 µs 75 µs
XML 48 µs 73 µs
Plain text 47 µs 68 µs
HTML + gzip 2.4 ms 3.1 ms
JSON + gzip 256 µs 510 µs

Issues· 2 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Go404404-error-page404-pages404-template

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理