How to get HTTP response code for a URL in Java? How to get HTTP response code for a URL in Java? java java