I see. Will follow that and set the code, respond from the sequence then. Thanks.
On Tue, Jan 30, 2018 at 9:28 PM, Sanjeewa Malalgoda <[email protected]> wrote: > Yes send from custom sequence and then drop flow will work. Its better to > maintain separate convert sequence. > > Thanks, > sanjeewa. > > On Wed, Jan 31, 2018 at 8:21 AM, Harsha Kumara <[email protected]> wrote: > >> Hi Lahiru, >> >> I think it's not possible to override it but you can follow [1] to do it >> in a separate way. >> >> [1] http://sanjeewamalalgoda.blogspot.com/2015/04/how-to-gen >> erate-custom-error-message.html >> >> Thanks, >> Harsha >> >> On Wed, Jan 31, 2018 at 2:08 AM, Lahiru Sandaruwan <[email protected]> >> wrote: >> >>> Hi, >>> >>> I changed _auth_failure_handler_ to set HTTP code to 498. But it still >>> responds with 401. My handler after change is as follows, >>> >>> <sequence name="_auth_failure_handler_" xmlns="http://ws.apache.org/ns >>> /synapse"> >>> <property name="error_message_type" value="application/xml"/> >>> <sequence key="_cors_request_handler_"/> >>> <property name="HTTP_SC" value="498" scope="axis2" type="STRING" /> >>> </sequence> >>> >>> Anything wrong with my config? >>> >>> Thanks. >>> >>> -- >>> -- >>> >>> Lahiru Sandaruwan >>> Associate Technical Lead, >>> WSO2 Inc., http://wso2.com >>> >>> lean.enterprise.middleware >>> >>> m: +1 901 530 2379 <(901)%20530-2379> >>> e: [email protected] b: https://medium.com/@lahirugmg >>> in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>> >>> >> >> >> -- >> Harsha Kumara >> Software Engineer, WSO2 Inc. >> Mobile: +94775505618 <077%20550%205618> >> Blog:harshcreationz.blogspot.com >> > > > > -- > > *Sanjeewa Malalgoda* > WSO2 Inc. > Mobile : +94713068779 <071%20306%208779> > > <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda. > blogspot.com/ <http://sanjeewamalalgoda.blogspot.com/> > > > -- -- Lahiru Sandaruwan Associate Technical Lead, WSO2 Inc., http://wso2.com lean.enterprise.middleware m: +1 901 530 2379 e: [email protected] b: https://medium.com/@lahirugmg in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
