Capture Http response code across multiple servers

how can i capture a http response code across multiple servers in a domain

Sample to capture status code of www.google.com:

Invoke-WebRequest www.google.com | Select-Object -Property StatusCode

You can iterate the above code using a for loop for any number of URIs, or using an Infile.