It seems a little weird to me that we would initial `response_code` to an error value but `res` to an OK value. Can we initialize both to either a NULL or error value?