MCPcopy Create free account
hub / github.com/etesync/server / CustomHttpException

Class CustomHttpException

etebase_server/fastapi/exceptions.py:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26class CustomHttpException(HTTPException):
27 def __init__(self, code: str, detail: str, status_code: int = status.HTTP_400_BAD_REQUEST):
28 self.code = code
29 super().__init__(status_code, detail)
30
31 @property
32 def as_dict(self) -> dict:
33 return {"code": self.code, "detail": self.detail}
34
35
36class AuthenticationFailed(CustomHttpException):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected