Skip to content

When routes.predicates.RemoteAddr be set, and request was forbidden, the result is not clear enough. #2194

Open
@tain198127

Description

@tain198127

Is your feature request related to a problem? Please describe.

When I set RemoteAddr config in routes.predicates, if request was forbidden by ip, the result was not clear enough ,just show 404, but I want more clear infomation,like 403 or other some info.

Describe the solution you'd like
I hope when request was forbidden by RemoteAddr, give a callback or some clear exception, so we can handle it.

Describe alternatives you've considered
I knew io.netty.handler.ipfilter.IpFilterRuleType have another value REJECT , but I didn't find it in Spring Cloud Gateway, maybe could consider it in Spring Cloud Gateway.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions