Layer7 API Management

  • 1.  Route via HTTP response when the return code is not 200

    Posted Oct 11, 2018 01:39 PM

    It looks like if an Route via HTTP assertion returns 200, response object is populated. But if the return code is not 200, response variables are not updated. Is there a way I can change this behavior so that I can examine the response variables even if the request fails (i.e. return code is not 200)?



  • 2.  Re: Route via HTTP response when the return code is not 200
    Best Answer

    Broadcom Employee
    Posted Oct 12, 2018 01:02 AM

    Hello,

     

    Does this work for you?

     

     

    Best regards,

    Seiji



  • 3.  Re: Route via HTTP response when the return code is not 200

    Posted Oct 12, 2018 10:32 AM

    Selecting 'Never fail' does cause the response variables to get populated but then my policy logic will have to change since it expects the assertion to fail if the return code is not 200. I suppose I could add a check of the response code after  all my Route via HTTP assertions but I was hoping for a simpler solution.



  • 4.  Re: Route via HTTP response when the return code is not 200

    Broadcom Employee
    Posted Oct 14, 2018 08:13 PM

    Yes, I believe you have to do so if you want to get  the original none 200 response.