mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
Deletes functions, methods, classes, schema dataclasses, error classes, Events senders, and module-level constants that nothing references, including tests. Also drops the unused `doc_cleanup(test_directory)` and `_wait_for_sub_job_with_progress(collection_idx)` parameters, and the imports that only served removed code. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
391 B
Python
15 lines
391 B
Python
from http import HTTPStatus
|
|
|
|
from wrolpi.errors import APIError
|
|
|
|
|
|
class UnknownInventory(APIError):
|
|
code = 'UNKNOWN_INVENTORY'
|
|
summary = 'No inventory with that slug exists'
|
|
status_code = HTTPStatus.NOT_FOUND
|
|
|
|
|
|
class InventoryConflict(APIError):
|
|
code = 'INVENTORY_CONFLICT'
|
|
summary = 'The inventory was modified since it was loaded'
|
|
status_code = HTTPStatus.CONFLICT
|