jason810496 commented on code in PR #56564:
URL: https://github.com/apache/airflow/pull/56564#discussion_r2423230262


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dags.py:
##########
@@ -176,7 +176,7 @@ def get_dags(
         [
             status.HTTP_400_BAD_REQUEST,
             status.HTTP_404_NOT_FOUND,
-            status.HTTP_422_UNPROCESSABLE_ENTITY,

Review Comment:
   If I remember correctly, we don't even need 422 error response code in 
`create_openapi_http_exception` it will automatically be added by FastAPI.



##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dags.py:
##########
@@ -400,7 +400,7 @@ def unfavorite_dag(dag_id: str, session: SessionDep, user: 
GetUserDep):
         [
             status.HTTP_400_BAD_REQUEST,
             status.HTTP_404_NOT_FOUND,
-            status.HTTP_422_UNPROCESSABLE_ENTITY,
+            status.HTTP_422_UNPROCESSABLE_CONTENT,

Review Comment:
   Same here.



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