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-
> generate-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

<http://sanjeewamalalgoda.blogspot.com/>blog
:http://sanjeewamalalgoda.blogspot.com/
<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to