19 lines
481 B
Python
19 lines
481 B
Python
import enum
|
|
from typing import Final
|
|
|
|
from delta_barth.types import CurrentContentHeaders, HttpContentHeaders
|
|
|
|
HTTP_BASE_CONTENT_HEADERS: Final[HttpContentHeaders] = {
|
|
"Content-type": "application/json",
|
|
"Accept": "application/json",
|
|
}
|
|
|
|
HTTP_CONTENT_HEADERS: Final[CurrentContentHeaders] = CurrentContentHeaders(
|
|
HTTP_BASE_CONTENT_HEADERS
|
|
)
|
|
|
|
|
|
class KnownApiErrorCodes(enum.Enum):
|
|
LOGIN = frozenset((400, 401, 409, 500))
|
|
LOGOUT = frozenset((400, 401, 409, 500))
|