Checks to see if there is a 4XX or 5XX error when getting data.