Layer 7 API Management

Expand all | Collapse all

Suggestion forwarding Customizing backend System Error

Jump to Best Answer
  • 1.  Suggestion forwarding Customizing backend System Error

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

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