Layer7 API Management

Expand all | Collapse all

Route via HTTP response when the return code is not 200

Jump to Best Answer
  • 1.  Route via HTTP response when the return code is not 200

    Posted 10-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

    Posted 10-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 10-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

    Posted 10-14-2018 08:13 PM

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