-
Enhancement
-
Resolution: Done
-
Major
-
1.0.1.Final
-
None
-
Mac OS
Is it possible to customize the response headers, for example, I get this now:
Status Code: 500 Internal Server Error
Connection: keep-alive
Content-Length: 82
Content-Type: application/json
Date: Thu, 22 Jan 2015 17:55:04 GMT
Server: WildFly/8
X-Policy-Failure-Code: 10005
X-Policy-Failure-Message: Rate limit exceeded.
X-Policy-Failure-Type: Other
X-Powered-By: Undertow/1
What will be better for me will be to get 429 as response code, and my own customer headers such as:
"X-Dell-Ratelimit-Remaining": "0", "X-Dell-Ratelimit": "10", "X-Dell-Ratelimit-Reset": "Thu, 22 Jan 2015 17:53:59 GMT
Will I have to write my own policy to do that or can I customize, and how?
- is related to
-
APIMAN-261 Policies cannot set the HTTP response code
-
- Closed
-