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