How to check error in getting data from spreadsheet

I want to know how to check if theres an error in getting data from a spreadsheet, and then showing that data in labels

Hi

%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5