How to get HTTP response code for a URL in Java? - Stack Overflow

How to get HTTP response code for a URL in Java? - Stack Overflow