got consumer to call back with error objects in the case of errors instead of error codes.