Errors are of two major types: 1. Server error - to be logged on to the Parseable console. 2. API error - to be sent to the user as API response. In some cases we may need to use both types.