Skip to content

feat: allow custom status code#16

Merged
traefiker merged 2 commits intotraefik:masterfrom
KevSlashNull:status-code
Apr 20, 2026
Merged

feat: allow custom status code#16
traefiker merged 2 commits intotraefik:masterfrom
KevSlashNull:status-code

Conversation

@KevSlashNull
Copy link
Copy Markdown
Contributor

This adds a code config option to respond with a custom HTTP status code instead of the default HTTP 403.

Other 4xx status codes, such as 404, 410 (or even 418 ;p), would also be useful response codes when someone wants to block access to a path.

This adds a `code` config option to respond with a custom HTTP status
code instead of the default HTTP 403.

Other 4xx status codes, such as 404, 410 (or even 418 ;p), would
also be useful response codes when someone wants to block access to a
path.
Copy link
Copy Markdown

@darkweaver87 darkweaver87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@traefiker traefiker merged commit 8e124d8 into traefik:master Apr 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement a new or improved feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants