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
Blog:harshcreationz.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to