Traefik V3, How to Disable http and tcp ingress route temporarily and return 503 maintenance mode

I am currently using traefik v3 and i need to return 503 status code describing the service is in maintenance mode when there is a maintenance of the service.

how do i do it, found some results suggesting middleware change and annotating route but nothing works.

Thanks for helping.

There is no "switch" to enable that in Traefik, you would need to create/update dynamic config.

Another option would be to create an additional service with high priority in Traefik, so all requests are routed there, which returns 503. But that's from my Docker-line of thinking.