BrokerActivity will return same cancel and error codes as listed here. This method will do the similar processing for cancel and error.