def _format_error(error: list) -> dict:
    """
    Convert the error type list to a dict.
    Args:
        error (list): a two element list with the error type and description

    Returns:
        dict: explicit names for the list elements
    """
    return {'error_type': error[0], 'description': error[1]}