need a clear, crisp definition of what happens when there is an error
for example actual can return "didnt find prediction ID"
now in case of error we return: 'result': False, 'data': 'Prediction ID does not exist.'
we should extend error reporting: 'result': False, 'data': { 'error': 'Prediction ID does not exist.', 'error_detail': {'exception': '', 'ids': []}, }
for example for actuals if some IDs are missed: 'result': False, 'data': { 'error': 'Prediction ID does not exist.', 'error_detail': {'exception': '', 'ids': [id1, id2]}, }
each method should have list of possible error in form of string: actual: 'Prediction ID does not exist.' 'Provider error.' 'Internal error'
https://scikit-learn.org/stable/modules/generated/sklearn.exceptions.NotFittedError.html#sklearn.exceptions.NotFittedError