DataPower

 View Only
  • 1.  Reason Phrase in Datapower

    Posted Thu May 09, 2024 03:07 AM

    Hi @Steve Linn and Community,

    I have a query, What if my backend is throwing some status code and reason other than 200OK. From DataPower MPGW it is giving 200ok since the transaction is processed.Is there any way to handle it like i need to pass the same reason phrase and code thru my mpgw.

    Without using Proxy HTTP Response option in Advanced.

    Any input from you is helpful.




    ------------------------------
    Stefen Salvatore
    ------------------------------


  • 2.  RE: Reason Phrase in Datapower

    IBM Champion
    Posted Thu May 09, 2024 09:22 AM

    Stefen,

    You can get the response code in xslt using "dp:response-header('x-dp-response-code')", and then set it in the response using "dp:set-response-header name="'x-dp-response-code'" value="$varFromDPResponseHeader".



    ------------------------------
    Joseph Morgan
    ------------------------------