added error handling on api service
added error handling on api service

TimeSeriesPrediction/time-series-web-client,TimeSeriesPrediction/time-series-web-client,TimeSeriesPrediction/time-series-web-client