feat: add set phone
This commit is contained in:
11
src/presentation/handlers/http_exception_handler.py
Normal file
11
src/presentation/handlers/http_exception_handler.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from fastapi import Request
|
||||
from fastapi.responses import ORJSONResponse
|
||||
from starlette.exceptions import HTTPException
|
||||
|
||||
|
||||
async def http_exception_handler(_request: Request, exc: HTTPException) -> ORJSONResponse:
|
||||
return ORJSONResponse(
|
||||
status_code=exc.status_code,
|
||||
content={'detail': exc.detail},
|
||||
headers=dict(exc.headers) if exc.headers else None,
|
||||
)
|
||||
Reference in New Issue
Block a user