2 comments (2 comments)0 reactions (0 reactions)0 assignees (0 assignees)Java8,150 forks (8,150 forks)batch import
area/gateway-flow-controlarea/integrationsgood first issuekind/enhancement
Repository metrics
- Stars
- 23,109 stars (23,109 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
你好!目前我们项目使用zuul做为网关搭配sentinel进行限流,通过实现ZuulBlockFallbackProvider自定义了限流后的返回结果,其中code我们定义为10018,message则提示限流。这样限流后会返回{"code":10018,"message":"限流提示..."}但是http状态码居然是10018,请问被限流后http状态码该如何设置成200而不跟随BlockResponse类的code?
Contributor guide
- Research direction
- Investigate the ZuulBlockFallbackProvider implementation to override the HTTP status code to 200 while preserving custom block response body.
- Tech stack
- java
- Domain
- backendapi
- Issue type
- Bug
- Prerequisites
- JavaSpring CloudZuul