{"id":18805579,"url":"https://github.com/melchor629/traefik-error-page","last_synced_at":"2025-09-02T12:32:48.990Z","repository":{"id":210260159,"uuid":"726112539","full_name":"melchor629/traefik-error-page","owner":"melchor629","description":"Traefik's error middleware, with a twist","archived":false,"fork":false,"pushed_at":"2023-12-02T18:52:54.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-07T22:48:33.684Z","etag":null,"topics":["traefik-plugin"],"latest_commit_sha":null,"homepage":"https://plugins.traefik.io/plugins/6569fc07ce37949adf28307f/error-pages","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melchor629.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-01T15:02:01.000Z","updated_at":"2024-05-26T15:41:47.000Z","dependencies_parsed_at":"2024-11-07T22:44:31.123Z","dependency_job_id":"ef433e80-6152-43a5-be8c-a17864ee82c3","html_url":"https://github.com/melchor629/traefik-error-page","commit_stats":null,"previous_names":["melchor629/traefik-error-page"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchor629%2Ftraefik-error-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchor629%2Ftraefik-error-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchor629%2Ftraefik-error-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchor629%2Ftraefik-error-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melchor629","download_url":"https://codeload.github.com/melchor629/traefik-error-page/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231785229,"owners_count":18426289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["traefik-plugin"],"created_at":"2024-11-07T22:44:26.025Z","updated_at":"2024-12-29T21:12:50.613Z","avatar_url":"https://github.com/melchor629.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# traefik error page\n\nAn adaptation of the [error](https://github.com/traefik/traefik/blob/master/pkg/middlewares/customerrors/custom_errors.go) middleware from traefik that works similar but allows to respond from the service only if the response from the real service has no body.\n\n\u003e **NOTE**: this code contains code from the aformentioned middleware.\n\n## Configuration\n\nWorks similar as in the middleware, but there are extra configuration and the `service` works differently.\n\n```yaml\nhttp:\n  middlewares:\n    error-pages:\n      plugin:\n        traefik-error-page:\n          # range of status codes that the middleware will accept\n          status: ['400-499', '500-599']\n          # this should point to the root url of the service, the middleware cannot access to certain\n          # information from traefik like services, so this should point to the scheme://host[:port]\n          service: 'https://http.cat'\n          # the path to make the request to\n          query: '/{status}'\n          # only replace the response with the error from the other service if the real service\n          # answered without any content (true by default)\n          emptyOnly: true\n          # prints some logs\n          debug: false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelchor629%2Ftraefik-error-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelchor629%2Ftraefik-error-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelchor629%2Ftraefik-error-page/lists"}