Mercurial > p > roundup > code
view MANIFEST.in @ 8586:31a8a6faa2fa
bug: Allow UsageError exception to use more specific error code
UsageError exception returned 400 error code but should return 405
when generated for a bad http method.
Modified error handler to use 400 error code if self.response_code was
less then 400. This should reproduce the standard error of 400 if one
was not specified and preserve any other explicitly set response code.
Also enhanced a test case to verify the 405 is returned.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 20 Apr 2026 03:09:30 -0400 |
| parents | a4cb4e75d4e9 |
| children |
line wrap: on
line source
recursive-include share * recursive-include roundup *.py *.txt recursive-include frontends *.* recursive-include scripts *.* *-* recursive-include scripts/Docker Dockerfile *.* *_* recursive-include tools *.* base64 recursive-include test *.py *.txt include test/pg_service.conf recursive-include doc *.html *.gif *.png *.txt *.css *.example recursive-include detectors *.py README.txt include demo.py *.txt global-exclude *.pyc *.pyo .DS_Store *.orig *.rej *~ \#* .flake8 include doc/conf.py doc/Makefile doc/requirements.pip doc/roundup-favicon.ico include doc/format_config.awk include locale/*.po locale/*.mo locale/roundup.pot locale/Makefile
