A journey to fix `ValidationError` in Pocket imports turned service layer refactoring :D
12 lines
209 B
Python
12 lines
209 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import annotations
|
|
|
|
import enum
|
|
|
|
|
|
class BackendServiceErrorCode(enum.Enum):
|
|
INTERNAL = -32000
|
|
NOT_FOUND = -32001
|
|
ACCESS_DENIED = -32002
|
|
INVALID = -32003
|