requires http module and assigns url
creates a get request to url and console logs response
handles response error