Solutionunvalidated
I usually do manage the exceptions through the `exception_handler`-s — here is how I would implement handling the `asyncio.exceptions.CancelledError`. Tension: so it can scale more when the project grows. Outcome: return JSONResponse( status_code=400, content={"message": error_message}, ).
9484496f-6f16-4dfe-9f10-b1e9282694fd
I usually do manage the exceptions through the exception_handler-s — here is how I would implement handling the asyncio.exceptions.CancelledError. Tension: so it can scale more when the project grows. Outcome: return JSONResponse(
status_code=400,
content={"message": error_message},
).