res.code is integer.  When update_cmd_parts() in the Response class, updates that code information like this:

self.code = md[2].to_i