Do you have some examples or a link to a blog for what types of error cases you ran into and how you handled it?
From memory, data might return normal json but with "" empty string instead of metric forecast but imperial forecast is there. Or the other way around. Or both empty. Or 0 values for variables that shouldn't be 0. Or error state json with not much info. Things like that.