Hi Team,
We are using open bank solution for one of our PoC. While doing some testing I found that different errors are using different formats.
For Example:
1. In Oauth proxy error response is in following format:
{ "ErrorCode" : "invalid_request", "Error" :"Invalid Authorization Code" }
2. In Accounts Service for invalid token the format is:
{ "status": "error", "message": "Invalid Access Token" }
3. In Account service only for some other error the error format is:
{ "error": "Unauthorized Transaction", "description": "Access Token does not contain an Account Number reference" }
Just wanted to understand if there was any specific reason for doing so because if a developer wants to extract exact error message apart from reason phrase and status code then its difficult due to inconsistency of error formats across APIs. @sudharshan@apigee.com