more error handling for status code to invalid url, etc if not 200