aichibazhang commented on issue #4792:
URL: https://github.com/apache/apisix/issues/4792#issuecomment-895918976
我的意思是,response-write 是否可以支持多个错误码的改写,array类型,比如这样的json
```
"response-rewrite": [{
"body": "{\"code\":\"ok\",\"message\":\"new json body\"}",
"headers": {
"X-Server-id": 3,
"X-Server-status": "on",
"X-Server-balancer_addr": "$balancer_ip:$balancer_port"
},
"vars":[
[ "status","==","200" ]
]},
"body": "{\"code\":\"error\",\"message\":\"request limit\"}",
"headers": {
"X-Server-id": 3,
"X-Server-status": "on",
"X-Server-balancer_addr": "$balancer_ip:$balancer_port"
},
"vars":[
[ "status","==","502" ]
]},
]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]