We are designing set of web services which will return XML string in response. These are RESTFul services so I will have to send exception inside element. I am planing to design set of Error code which can help me determine where level occured just by looking at the code.
For Example
1000 - Application Level
2000 - DB level
3000 - Network level
so if I have error message then I can know right away that this was an application level error and it came from 1st business module.
I am not very experience in this so I would love to here your thoughts and criticism.
Thanks