from http import HTTPStatus from wrolpi.errors import APIError class NoInventories(APIError): code = 'NO_INVENTORIES' message = 'No Inventories' status_code = HTTPStatus.BAD_REQUEST class InventoriesVersionMismatch(APIError): code = 'INVENTORIES_VERSION_MISMATCH' message = 'Inventories version in the DB does not match the inventories config' status_code = HTTPStatus.BAD_REQUEST