python-restx / flask-restx

Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
https://flask-restx.readthedocs.io/en/latest/
Other
2.14k stars 333 forks source link

Fix wrong status code and message on responses when handling `HTTPException`s #570

Closed lkk7 closed 9 months ago

lkk7 commented 11 months ago

Fixes https://github.com/python-restx/flask-restx/issues/569.

All details are in the issue. The code fixes both of the issues:

Feel free to edit the PR to match your expectations ☺️

lkk7 commented 11 months ago

@peter-doggart Hi, I've added the entry. Looks like the workflow is not passing ,but it's not related to my changes, right? It's a problem with Flask 3.0.0.

peter-doggart commented 11 months ago

Yeah it's flask and pytest related. Will need to merge some other updates first but we are currently blocked by the pytest failures.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (d348495) 96.15% compared to head (3f13fa4) 96.15%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #570 +/- ## ======================================= Coverage 96.15% 96.15% ======================================= Files 20 20 Lines 2756 2760 +4 ======================================= + Hits 2650 2654 +4 Misses 106 106 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.