I know questions about getting HTTP response status codes have already been asked a lot, but all the answers I've found are in jQuery. I would like this answer in pure JavaScript.
What is the simplest/best way in my script that I can receive a value for the HTTP response status code of a URL string, were the respective URL to be launched? I want my string to be checked to see if an HTTP request can be successfully completed with it.