Status codes by name? #5790
-
Is there a way to access status codes by name rather than using integers? I see that P.S. If this is something that is determined to be worth adding I would gladly contribute! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I don't think it is necessary to reimplement this in aiohttp. One could easily just use the constants provided by stdlib: https://docs.python.org/3/library/http.html#http-status-codes. |
Beta Was this translation helpful? Give feedback.
-
As a side point, I don't think they are deprecated at all. returning them is deprecated. |
Beta Was this translation helpful? Give feedback.
I don't think it is necessary to reimplement this in aiohttp. One could easily just use the constants provided by stdlib: https://docs.python.org/3/library/http.html#http-status-codes.