Replies: 1 comment 1 reply
-
Happy to accept a PR 🤗 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I saw that in class Response all HTTP status codes are specified in methods. I want to suggest that all the status codes be separated into a some constants file.
I was writing tests now, and I need to write all the status codes right in the code, but I don’t remember all the HTTP status codes. It’s easier for to navigate by the name of the statuses.
For example, NestJs has a "file" with all the codes and it is very useful.
P.S. It is not difficult to create a file with these constants in your project yourself. I just wanted to know why it's not done that way? Maybe there are reasons, is it better or something else?
Beta Was this translation helpful? Give feedback.
All reactions