3 ms·
Response.status_code is an int No, it acts like an int; whether it is one (should be) irrelevant :) class StatusCode(int): @property def o
by icebraining 9y 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