Layer7 API Management

  • 1.  Not able to access response data from the Customize Error Response assertion

    Posted Mar 29, 2019 04:04 PM

    Hi,

     

    I am not able to access the response object in the message-completed global policy. I would like to read the HTTP status code and some other data coming in the response in order to customize the error response.

     

    For example, if the error is coming from the OAuth Toolkit I want to extract the error code and description.

     

    Thank you,

    Roman



  • 2.  Re: Not able to access response data from the Customize Error Response assertion

    Broadcom Employee
    Posted Mar 31, 2019 06:57 PM

    There is already an idea ticket Custom Error Response should update ${response.http.status} / ${response.mainpart} variables. 

    you may vote it up and comment your use case.