def _error_factory(message, error):
    """
    Package the error info in the proper format for the marshalling function
    :param message:
    :param error:
    :return: ErrorResponseModel
    """
    return {
        'message': message,
        'error': error
    }