You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2025/04/01 17:32:15 UTC

[GH] (airflow/api-status-code): Workflow run "Tests" is working again!

The GitHub Actions job "Tests" on airflow.git/api-status-code has succeeded.
Run started by GitHub user kaxil (triggered by kaxil).

Head commit for run:
5498954c04b91f9382902c770b33bf1c5cb28dd8 / Kaxil Naik <ka...@gmail.com>
Correct status code validation in `ServerResponseError.from_response`

The original condition `if 400 < (response.status_code // 100) >= 600` was logically
incorrect and would never evaluate to True. This meant the method would never return
`None` for status codes outside the 4xx/5xx range, which is the intended behavior.

The fix changes the condition to properly handle status codes:
- Returns None for status codes < 400 and >= 600
- Creates ServerResponseError for 4xx/5xx status codes

Report URL: https://github.com/apache/airflow/actions/runs/14200871083

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org