KushagraB424 opened a new pull request, #69361:
URL: https://github.com/apache/airflow/pull/69361
<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->
### Description
This PR resolves an existing `TODO` in
`airflow/api_fastapi/execution_api/routes/task_instances.py` by ensuring that
when an `HTTPException` is raised due to an invalid Task Instance state (409
Conflict), the `detail` object complies with the RFC 9457 format for problem
details. It adds the standard `type`, `title`, `status`, `detail`, and
`instance` fields to the response.
closes: #69360
---
##### Was generative AI tooling used to co-author this PR?
<!--
If generative AI tooling has been used in the process of authoring this PR,
please
change below checkbox to `[X]` followed by the name of the tool, uncomment
the "Generated-by".
-->
- [x] Yes (please specify the tool below)
<!--
Generated-by: [Tool Name] following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
-->
Generated-by: Google DeepMind Antigravity IDE following the guidelines.
--
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]