Added better alert for errors in response.