0
votes

I used an error token to call an API, it response an error message as below(already changed to json format).

I hope I can change the fixed payload, which configuration file can I modify in APIM? Thank you.

{
  "fault": {
    "code": 900901,
    "message": "Invalid Credentials",
    "description": "Access failure for API: /test/v1/check, version: v1 status: (900901) - Invalid Credentials. Make sure you have given the correct access token"
  }
}
1

1 Answers

1
votes

This cannot be modified from a configuration file. What you can do is engage a sequence and change the error message as described in http://sanjeewamalalgoda.blogspot.com/2015/06/how-to-send-specific-status-code-and.html