handling network error while movies api call