Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-260

Rate Limit Policy: Allow custom response headers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.0.x, 1.0.3.Final
    • 1.0.1.Final
    • Gateway
    • None

      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?

              ewittman@redhat.com Eric Wittmann
              christinalau28 Christina Lau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: