Changing all status codes from raw numbers to using fastapi.status (closed #1319)
I believe that using status codes via FastAPI (Starlette, actually!) instead of using raw numbers is more readable, consistent, and makes development easier.
Re-request from PR #1319.
Dear @alejsdev Please add the 'refactor' label. Thanks!
Thank you, @YuriiMotov. I've made the changes you requested. I even changed the numbers in ranges to starlette HTTP codes. If you still think that numbers are better for ranges. Let me know. I'll revert it quickly.
This pull request has a merge conflict that needs to be resolved.
Thanks! Actually, recently we had to move some of them that were using the names from status to use the numbers, because the name was changed in a recent version of Starlette. So, for now, I'll pass on this one, but thanks! :coffee: