API response should have the specific error code


When we have the Error being returned from API call , we should have the separate field for the Error Code. Right now we are only having the differentiation between status as 0 and 1 . This has become too generic and for the different scenarios , we need to rely on the actual text of the message . This doesn't necessarily scale well as any change at API level for the message will mean we will have to change the consuming clients as well. It would be better if we can have the specific Error Codes being returned for different scenarios and publish those error codes as well.