'request' is no longer the name of a local variable in 'http_send'; refactor invalid response errors