Add new method for api provider errors