Hacker News new | ask | show | jobs
by icebraining 2980 days ago
Response.status_code is an int

No, it acts like an int; whether it is one (should be) irrelevant :)

    class StatusCode(int):
        @property
        def ok(self):
            return 200 <= self < 300