A Java interface to handle each HttpURLConnection responseCode