by llccbb · 8y ago · 0 comments
FWIW Response.status_code is an int, so it might need to be a member function on Response.
No, it acts like an int; whether it is one (should be) irrelevant :)
class StatusCode(int):
@property
def ok(self):
return 200 <= self < 300