Go to file
2022-01-28 23:23:25 +05:00
.github Prometheus metrics implemented (#54) 2022-01-28 20:42:08 +05:00
cmd/error-pages Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
internal Prometheus metrics implemented (#54) 2022-01-28 20:42:08 +05:00
schemas Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
templates Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
test/hurl Prometheus metrics implemented (#54) 2022-01-28 20:42:08 +05:00
.codecov.yml v2: App rewritten in Go (#25) 2021-09-29 20:38:50 +05:00
.dockerignore v2: App rewritten in Go (#25) 2021-09-29 20:38:50 +05:00
.editorconfig v2: App rewritten in Go (#25) 2021-09-29 20:38:50 +05:00
.gitignore Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
.golangci.yml Flag --default-http-code for the serve subcommand added (#44) 2022-01-03 21:51:30 +05:00
.grype.yaml Prometheus metrics implemented (#54) 2022-01-28 20:42:08 +05:00
CHANGELOG.md Prometheus metrics implemented (#54) 2022-01-28 20:42:08 +05:00
docker-compose.yml Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
Dockerfile Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
error-pages.yml Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
go.mod Prometheus metrics implemented (#54) 2022-01-28 20:42:08 +05:00
go.sum Prometheus metrics implemented (#54) 2022-01-28 20:42:08 +05:00
LICENSE Basic repo files added 2020-07-08 16:12:21 +05:00
Makefile Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
README.md Readme file updated 2022-01-28 23:23:25 +05:00

HTTP's error pages

Release version Project language Build Status Release Status Coverage Image size License

One day you may want to replace the standard error pages of your HTTP server with something more original and pretty. That's what this repository was created for :) It contains:

  • Simple error pages generator, written on Go
  • Single-page error page templates with different designs (located in the templates directory)
  • Fast and lightweight HTTP server
  • Already generated error pages (sources can be found here, the demonstration is always accessible here)

🔥 Features list

  • HTTP server written on Go, with the extremely fast FastHTTP under the hood
    • Respects the Content-Type HTTP header (and X-Format) value and responds with the corresponding format (supported formats is json and xml)
    • Writes logs in json format
    • Contains healthcheck endpoint (/healthz)
    • Contains metrics endpoint (/metrics) in Prometheus format
  • Lightweight docker image (~3.7Mb compressed size), distroless and uses the unleveled user by default
  • Go-template tags are allowed in the templates
  • Ready for integration with Traefik (error pages customization) and Ingress-nginx
  • Fully configurable (take a look at the configuration file and project Wiki)
  • Distributed using docker image and compiled binary files

🧩 Install

Download the latest binary file for your os/arch from the releases page or use our docker image:

image stats

Registry Image
Docker Hub tarampampam/error-pages
GitHub Container Registry ghcr.io/tarampampam/error-pages

Using the latest tag for the docker image is highly discouraged because of possible backward-incompatible changes during major upgrades. Please, use tags in X.Y.Z format

🛠 Usage

Please, take a look at our Wiki for the common usage stories:

🪂 Templates

Name Preview
ghost ghost
l7-light l7-light
l7-dark l7-dark
shuffle shuffle
noise noise
hacker-terminal hacker-terminal
cats cats

Note: noise template highly uses the CPU, be careful

🦾 Contributors

I want to say a big thank you to everyone who contributed to this project:

contributors

📰 Changes log

Release date Commits since latest release

Changes log can be found here.

👾 Support

Issues Issues

If you find any bugs in the project, please create an issue in the current repository.

📖 License

This is open-sourced software licensed under the MIT License.