missed `self.code = response.status_code`