mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
28 lines
669 B
Python
28 lines
669 B
Python
|
|
from http import HTTPStatus
|
||
|
|
|
||
|
|
from wrolpi.errors import APIError
|
||
|
|
|
||
|
|
|
||
|
|
class UnknownZim(APIError):
|
||
|
|
code = 'UNKNOWN_ZIM'
|
||
|
|
summary = 'Failed to find the Zim'
|
||
|
|
status = HTTPStatus.NOT_FOUND
|
||
|
|
|
||
|
|
|
||
|
|
class UnknownZimEntry(APIError):
|
||
|
|
code = 'UNKNOWN_ZIM_ENTRY'
|
||
|
|
summary = 'Failed to find the Zim entry at that path'
|
||
|
|
status = HTTPStatus.NOT_FOUND
|
||
|
|
|
||
|
|
|
||
|
|
class UnknownZimTagEntry(APIError):
|
||
|
|
code = 'UNKNOWN_ZIM_TAG_ENTRY'
|
||
|
|
summary = 'Failed to find the TagZimEntry'
|
||
|
|
status = HTTPStatus.NOT_FOUND
|
||
|
|
|
||
|
|
|
||
|
|
class UnknownZimSubscription(APIError):
|
||
|
|
code = 'UNKNOWN_ZIM_SUBSCRIPTION'
|
||
|
|
summary = 'Failed to find the ZimSubscription'
|
||
|
|
status = HTTPStatus.NOT_FOUND
|