Skip to content

chore: Replace raw HTTP status codes with http.HTTPStatus enums #1545

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rapsealk
Copy link
Contributor

Hello graphene-django!

This pull request replaces raw HTTP status codes with their corresponding values from the standard library's http.HTTPStatus enum — as a follow-up to #1487. This improves readability and aligns with modern Python conventions.

http.HTTPStatus has been available since Python 3.5, so this change should remain compatible with all currently supported versions of Python and not affect backporting.

Thanks for your time and review! 🙌

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