def _format_status(self, image):
        status_mapping = {
            'active': 'ACTIVE',
            'queued': 'SAVING',
            'saving': 'SAVING',
            'deleted': 'DELETED',
            'pending_delete': 'DELETED',
            'killed': 'ERROR',
        }

        try:
            image['status'] = status_mapping[image['status']]
        except KeyError:
            image['status'] = 'UNKNOWN'
Update the status field to standardize format.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/views/images.py/ViewBuilder._format_status