Layer7 API Management

Expand all | Collapse all

Allowed Http Errors - Catch Exception and return Custom Error Response

  • 1.  Allowed Http Errors - Catch Exception and return Custom Error Response

    Posted Jul 27, 2015 05:00 PM

    Hi.

     

    I want to add/use a "Customize Error Response" policy when a request is made the is not in the "Allowed HTTP Methods"

    I think this will be fairly trivial but I cant find how to do this. The Request seems to be returned before I can get to it within the policy manager. Is this a global gateway policy change and how is it best to implement this?


    Your help and advice will be appreciated.


    Thanks.

    Paul



  • 2.  Re: Allowed Http Errors - Catch Exception and return Custom Error Response

    Posted Aug 06, 2015 02:00 PM
      |   view attached

    Development incident SSG-9565 was previously opened as an enhancement against the API Gateway to provide this capability. I am attaching a policy export that can be used with the message-received global policy to perform some conditional logic based upon an inbound request and an allowed whitelist of methods. This process will bypass the allowed options settings of a published service's HTTP options as specified in the Service Properties dialog.

    Attachment(s)

    zip
    http405-example.xml.zip   887 B 1 version