Is it possible to apply this way of error-pages on the IP of Traefik? When you access the IP of Traefik directly then you still get the blanc 404 errorpage which I like to avoid, the same goes for Bad Gateway, etc.
For existing domains you need to add the error middleware, for non existing (maybe like IP) you can just create an additional catch-all router and apply the error middleware:
I would recommend to check it step by step. This docker-compose.yml enables a catchall on port 80, it works with domain name and plain IP, shows a simple whoami page: