Layer7 API Management

 View Only
  • 1.  Suggestion forwarding Customizing backend System Error

    Posted Aug 05, 2019 12:59 AM
    Hi

    Can you please suggest or help in forwarding the customize the error send from backend system i.e. Microservice to front end via CA Gateway.

    Also how to customize the error in CA.


  • 2.  RE: Suggestion forwarding Customizing backend System Error
    Best Answer

    Broadcom Employee
    Posted Aug 07, 2019 09:03 AM
    Hi Mukesh,

    Are you looking to pass back an HTTP status code, ie: 401 unauthorized? or a custom message from the backend?
    If you are using an HTTP route assertion to the backend the below built-in context variables can return the HTTP status code along with the message body from the response object.

    ${httpRouting.reasonCode}
    ${response.http.status}
    ${response1.mainpart}

    Regards,
    Joe