Alwaysgaurav1 opened a new pull request, #69437:
URL: https://github.com/apache/airflow/pull/69437

   ### Description
   
   The Execution API endpoint `PUT /execution/task-instances/{id}/run` returns 
a 409 Conflict when a task instance is in an invalid state for transition. 
However, the error response currently does not follow the RFC 9457 Problem 
Details standard — it is missing the `type` and `title` fields that RFC 9457 
requires.
   
   This PR adds `type` and `title` fields to the error `detail` dict to make it 
RFC 9457 compliant:
   - `type`: 
`https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#section/Errors/Conflict`
   - `title`: `Conflict`
   
   Similarly, the `PUT /execution/task-instances/{id}/state` endpoint that 
returns 409 when trying to succeed a task in an invalid state is also updated.
   
   Unit tests are updated to verify the new fields are present in the error 
response.
   
   Closes: #69360


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