mirumee / ariadne

Python library for implementing GraphQL servers using schema-first approach.
https://ariadnegraphql.org
BSD 3-Clause "New" or "Revised" License
2.22k stars 179 forks source link

It might be slightly better idea to aggregate HTTP statuses in separate namespace. #65

Closed rafalp closed 7 months ago

rafalp commented 5 years ago

Originally posted by @salwator in https://github.com/mirumee/ariadne/pull/61

rafalp commented 5 years ago

Note to self:

We also want to extract parts of GraphQLMiddleware into reusable utility functions so we can share some view logic between Ariadne and other libs (eg. Django views). We may move those constants there by then.

Currently only constants Ariadne has are HTTP statuses and content types. If move those elsewhere, only constants left behind will be graphql playground.

rafalp commented 1 year ago

We could use HTTPStatus enum from stdlib