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


##########
airflow-core/src/airflow/api_fastapi/common/parameters.py:
##########
@@ -779,7 +779,7 @@ def _transform_dag_run_states(states: Iterable[str] | None) 
-> list[DagRunState
         return [None if s in ("none", None) else DagRunState(s) for s in 
states]
     except ValueError:
         raise HTTPException(
-            status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+            status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,

Review Comment:
   This can use `airflow.api_fastapi.compat.HTTP_422_UNPROCESSABLE_CONTENT` 
instead now.



-- 
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