pierrejeambrun commented on code in PR #62624:
URL: https://github.com/apache/airflow/pull/62624#discussion_r3275294729


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -102,11 +103,13 @@
     "/{task_instance_id}/run",
     status_code=status.HTTP_200_OK,
     dependencies=[Security(require_auth, scopes=["token:execution", 
"token:workload"])],
-    responses={
-        status.HTTP_404_NOT_FOUND: {"description": "Task Instance not found"},
-        status.HTTP_409_CONFLICT: {"description": "The TI is already in the 
requested state"},
-        HTTP_422_UNPROCESSABLE_CONTENT: {"description": "Invalid payload for 
the state transition"},
-    },
+    responses=create_openapi_http_exception_doc(
+        [
+            (status.HTTP_404_NOT_FOUND, "Task Instance not found"),

Review Comment:
   Nit: half the new descriptions end with `.` and half don't (`Task Instance 
not found` vs `Task Instance not found.` in this same file). Pick the one that 
is consistent with other default error responses.
   
   ---
   Drafted-by: Claude Code (Opus 4.7); reviewed by @pierrejeambrun before 
posting



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