urllib’s quirks are why everyone uses `requests` for python3 get response code from urllib. But if you’re stuck with stdlib, your approach is correct.
For debugging, add `print(dir(response))`—you’ll see `getcode()` isn’t *that* hidden. Just not obvious.
For debugging, add `print(dir(response))`—you’ll see `getcode()` isn’t *that* hidden. Just not obvious.
