public static void printSuccessInformation(HttpURLConnection connection) throws Exception {
        int code = connection.getResponseCode();
        if (code == 200) {
            System.out.println("Success");
        } else if (code == 201) {
            System.out.println("Created");
        } else if (code == 202) {
            System.out.println("Accepted");
        } else if (code == 204) {
            System.out.println("No content");
        }
    }