private static int getResponseCodeFrom(final HttpURLConnection conn)
    throws IOException {
        try {
            return conn.getResponseCode();
        } catch (final FileNotFoundException ex) {
            return 404;
        }
    }
Utility class for reporting events to the statistics manager.

@author Emil Forslund
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/util/Statistics.java