Error Handling
The platform has standardized error codes made up of four digits, which are returned under the "responseCode" return parameter. i.e., these do not change and should be used as part of exception handling logic.
Errors can be broadly classified as Logical Errors and Unexpected Errors.