fix: replace deprecated 422 status constant

This commit is contained in:
Abhimanyu Saharan
2026-02-08 21:44:29 +05:30
parent f3d853fa2f
commit aaeb3cf8f3

View File

@@ -134,7 +134,7 @@ async def validate_dependency_update(
normalized = _dedupe_uuid_list(depends_on_task_ids)
if task_id in normalized:
raise HTTPException(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
detail="Task cannot depend on itself.",
)
if not normalized: