Underground-Digital/Workflow-Engine
0
1from typing import Optional2 3from werkzeug.exceptions import HTTPException4 5 6class BaseHTTPException(HTTPException):7 error_code: str = "unknown"8 data: Optional[dict] = None9 10 def __init__(self, description=None, response=None):11 super().__init__(description, response)12 13 self.data = {14 "code": self.error_code,15 "message": self.description,16 "status": self.code,17 }18 