    private static void handleResponse(HttpURLConnection conn, int statusCode, String terminalWidth) {
        try {
            // 200 - modules found
            // Other - Error occurred, json returned with the error message
            MapValue payload;
            if (statusCode == HttpURLConnection.HTTP_OK) {
                try (BufferedReader reader = new BufferedReader(
                        new InputStreamReader(conn.getInputStream(), Charset.defaultCharset()))) {
                    StringBuilder result = new StringBuilder();
                    String line;
                    while ((line = reader.readLine()) != null) {
                        result.append(line);
                    }
                    payload = (MapValue) JSONParser.parse(result.toString());
                } catch (IOException e) {
                    throw ErrorUtil.createCommandException(e.getMessage());
                }

                if (payload.getIntValue("count") > 0) {
                    ArrayValue modules = payload.getArrayValue("modules");
                    printModules(modules, terminalWidth);
                } else {
                    outStream.println("no modules found");
                }
            } else {
                StringBuilder result = new StringBuilder();
                try (BufferedReader reader = new BufferedReader(
                        new InputStreamReader(conn.getErrorStream(), Charset.defaultCharset()))) {
                    String line;
                    while ((line = reader.readLine()) != null) {
                        result.append(line);
                    }
                } catch (IOException e) {
                    throw ErrorUtil.createCommandException(e.getMessage());
                }

                payload = (MapValue) JSONParser.parse(result.toString());
                throw ErrorUtil.createCommandException(payload.getStringValue("message"));
            }
        } finally {
            conn.disconnect();
        }
    }
The software does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.