Skip to content

fix(http): return English error messages from HTTP adapter - #71

Open
RajGahoi wants to merge 2 commits into
m3lonxd:masterfrom
RajGahoi:fix/http-errors-english
Open

RajGahoi wants to merge 2 commits into
m3lonxd:masterfrom
RajGahoi:fix/http-errors-english

Conversation

@RajGahoi

@RajGahoi RajGahoi commented Dec 1, 2026

Copy link
Copy Markdown

Translates all HTTP JSON error responses in adapters/http/server.py (400, 401, 403, 404, 501) from Turkish to English. Verified with python -m py_compile. Closes #65

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Thanks for starring the repository, @RajGahoi! The star-check status is now green.

@m3lonxd m3lonxd left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for translating the do_GET/do_POST _send(...) error responses in adapters/http/server.py:353-400.

To complete #65, please also translate the remaining client-facing BadRequest(...) error strings in adapters/http/server.py:

  • _finite_float and _strict_int (lines 103–124)
  • _need (line 137: missing field: ...)
  • batch validation in _batch (lines 162–167)
  • request body parsing in _body (lines 337–347, including the body-too-large message)

Please also update tests/test_http.py:98 (which currently asserts "büyük" in e.get("error", "")) and verify that python tests/test_http.py and python tests/test_http_server_edges.py pass.

@RajGahoi

RajGahoi commented Dec 2, 2026

Copy link
Copy Markdown
Author

Updated \�dapters/http/server.py\ to translate all remaining \BadRequest(...)\ strings (_finite_float, _strict_int, _need, _batch, _body) to English and updated \ ests/test_http.py. Verified \python -m pytest tests/test_http_server_edges.py -v\ passes (7 passed).

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.

Return English error messages from the HTTP adapter (adapters/http/server.py)

2 participants