Moved response.on.data to response.on.end to collect all data
Error: HTTP error
Removed semicolons
Changed callback arguments to (err, data) #1