See this document [1]. You will have to customize auth_failure_handler.xml
sequence.

[1]
https://docs.wso2.com/display/AM210/Error+Handling#ErrorHandling-Customerrormessages

On Tue, Sep 26, 2017 at 8:14 AM, vivekkumar <vivek.kum...@fisglobal.com>
wrote:

> I would like to send custom error message for any authentication related
> issue.
>
> Currently APIM is sending default error message that is following
>
> {
>     "fault": {
>         "code": 900901,
>         "message": "Invalid Credentials",
>         "description": "Access failure for API: /xxxx/v1, version: v1
> status: (900901) - Invalid Credentials. Make sure you have given the
> correct
> access token"
>     }
> }
>
> I tried to modify the sequence '_auth_failure_handler_.xml', but that
> didn't
> make any difference.
>
> Any suggestion would be helpful.
>
> Vivek
>
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
> Development-f3.html
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Senior Software Engineer, WSO2
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to