handle API consumer erorrs
todo