Skip to content

Normalize HTTP error handling - #46

Merged
wilsonfreitas merged 1 commit into
project-health-hardeningfrom
hardening/31-normalize-http-errors
Jun 14, 2026
Merged

Normalize HTTP error handling#46
wilsonfreitas merged 1 commit into
project-health-hardeningfrom
hardening/31-normalize-http-errors

Conversation

@wilsonfreitas

Copy link
Copy Markdown
Owner

Closes #31

Summary

  • Added shared HTTP status and transport error mapping helpers in bcb.http.
  • Reused the shared mapping in SGS, Currency, and OData sync/async paths while preserving module-specific public exceptions.
  • Added regression coverage for 429, 404, 5xx, timeout, and connection failures.

Verification

  • uv run pytest -m "not integration"
  • uv run ruff check bcb/ tests/
  • uv run ruff format --check bcb/ tests/
  • uv run mypy bcb/

@wilsonfreitas
wilsonfreitas merged commit a9473ce into project-health-hardening Jun 14, 2026
9 checks passed
@wilsonfreitas
wilsonfreitas deleted the hardening/31-normalize-http-errors branch June 14, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant