mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
27 lines
669 B
Python
27 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
|