apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
37.27k stars 14.34k forks source link

Migrate magic numbers for status codes to named constants #44176

Closed amoghrajesh closed 3 days ago

amoghrajesh commented 3 days ago

Building up on https://github.com/apache/airflow/pull/43663, replacing few of newer occurences of these magic number status codes to named constants as recommended by https://fastapi.tiangolo.com/reference/status/


^ Add meaningful description above Read the Pull Request Guidelines for more information. In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed. In case of a new dependency, check compliance with the ASF 3rd Party License Policy. In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.