Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

1 vote

Not prohibited, but disallowed -- which http error code should I return?

401 should be returned if authentication is missing, and if the same request with the right authentication added would succeed. 403 should be returned if this request, issued by this requester, an ...
gnasher729's user avatar
  • 45.7k
1 vote

Should I really use all uppercase for my constants?

Yes. Python lacks a const keyword, so all caps is a way to remind the programmer to not reassign to that variable. Pylint doesn't appear to check for reassignments however, but adding a type hint ...
Cees Timmerman's user avatar

Top 50 recent answers are included