Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong status code and message on responses when handling HTTPExceptions #570

Merged
merged 4 commits into from
Dec 10, 2023

Conversation

lkk7
Copy link
Contributor

@lkk7 lkk7 commented Oct 3, 2023

Fixes #569.

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

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

  • Formatted
  • Tests passing

Copy link
Contributor

@peter-doggart peter-doggart left a comment

Choose a reason for hiding this comment

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

Going to approve and run the pipelines to check all is OK. Can you please add a brief comment of this change to CHANGELOG please? :)

@lkk7
Copy link
Contributor Author

lkk7 commented Oct 6, 2023

@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
Copy link
Contributor

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

Copy link

codecov bot commented Dec 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

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

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@peter-doggart peter-doggart left a comment

Choose a reason for hiding this comment

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

👍

@peter-doggart peter-doggart merged commit 25cb897 into python-restx:master Dec 10, 2023
16 of 17 checks 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.

Wrong status code and message on responses when handling HTTPExceptions
2 participants