uranusjr commented on code in PR #57465:
URL: https://github.com/apache/airflow/pull/57465#discussion_r2476528892


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/dag_runs.py:
##########
@@ -48,7 +48,7 @@
         status.HTTP_400_BAD_REQUEST: {"description": "DAG has import errors 
and cannot be triggered"},
         status.HTTP_404_NOT_FOUND: {"description": "DAG not found for the 
given dag_id"},
         status.HTTP_409_CONFLICT: {"description": "DAG Run already exists for 
the given dag_id"},
-        status.HTTP_422_UNPROCESSABLE_ENTITY: {"description": "Invalid 
payload"},
+        status.HTTP_422_UNPROCESSABLE_CONTENT: {"description": "Invalid 
payload"},

Review Comment:
   We’ll need to bump Starlette if we do this; currently we only require 
>=0.45.0, but HTTP_422_UNPROCESSABLE_CONTENT was added in 0.48.0.
   
   
https://github.com/Kludex/starlette/commit/40a81479c7146bab21cc58ccb92b017cf177a077
   
   
https://github.com/apache/airflow/blob/c3a0651b0c3739f5a842b0f49e1a11a0a385e862/airflow-core/pyproject.toml#L86
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to