mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
15 lines
410 B
Python
15 lines
410 B
Python
from http import HTTPStatus
|
|
|
|
from wrolpi.errors import APIError
|
|
|
|
|
|
class NoInventories(APIError):
|
|
code = 'NO_INVENTORIES'
|
|
summary = 'No Inventories'
|
|
status_code = HTTPStatus.BAD_REQUEST
|
|
|
|
|
|
class InventoriesVersionMismatch(APIError):
|
|
code = 'INVENTORIES_VERSION_MISMATCH'
|
|
summary = 'Inventories version in the DB does not match the inventories config'
|
|
status_code = HTTPStatus.BAD_REQUEST
|