Handling 409 Http staus code in OpenIG routes

This topic contains 1 voice and has 0 replies.

  • Author
    Posts
  • #23837
     srinath.m 
    Participant

    Hi All,
    Our client application uses REST API’s to call back end server via OpenIG routes. In some cases, back end server gives 409 response code on some REST API, but OpenIG sends this response to client as 500 Internal server error. Below is the piece of code of the route.

    {
                                                                            "condition": "${request.headers['FilterStatus'][0] == 'SESSIONEXPIRED'}",
                                                                            "handler": {
                                                                                    "name": "SessionExpiredFilterHandler",
                                                                                    "type": "StaticResponseHandler",
                                                                                    "config": {
                                                                                            "status": 401,
                                                                                            "reason": "Session expired",
                                                                                            "entity": "<html><h2>${request.headers['ErrorMessage'][0]}</h2></html>"
                                                                                    }
                                                                            }
                                                                    }

    Any idea how to handle 409 response code in OpenIG route ?

    Thanks,
    Srinath

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

©2019 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?