From 444956d14a7035378189efb6b3a13a29eff102c0 Mon Sep 17 00:00:00 2001 From: Kalyan R Date: Wed, 16 Oct 2024 01:33:07 +0530 Subject: [PATCH] Update airflow/api_fastapi/views/public/dag_run.py --- airflow/api_fastapi/views/public/dag_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/api_fastapi/views/public/dag_run.py b/airflow/api_fastapi/views/public/dag_run.py index 89fd51fd95eb..335f1f0afe33 100644 --- a/airflow/api_fastapi/views/public/dag_run.py +++ b/airflow/api_fastapi/views/public/dag_run.py @@ -45,7 +45,7 @@ async def get_dag_run( @dag_run_router.delete( - "/{dag_run_id}", status_code=204, responses=create_openapi_http_exception_doc([401, 403, 404]) + "/{dag_run_id}", status_code=204, responses=create_openapi_http_exception_doc([400, 401, 403, 404]) ) async def delete_dag_run(dag_id: str, dag_run_id: str, session: Annotated[Session, Depends(get_session)]): """Delete a DAG Run entry."""