private void requeteClient() throws IOException {
        String data = "";

        switch (statusCode()) {
            case 200:
                System.out.println("OK");
                BufferedReader br = new BufferedReader(new FileReader(file));
                String buffer;
                do {
                    buffer = br.readLine();
                    data += buffer;
                } while (buffer != null);
                System.out.println(data);
                String nomFile = file.getName();
                if (nomFile.endsWith(".txt")) {
                    envoiFichier("text/plain", data);
                } else if (nomFile.endsWith(".jpg")) {
                    envoiFichier("image/jpg", data);
                } else {
                    msgErreur(501, "Mauvais format");
                }
            case 404:
                msgErreur(404, "Not Found");
        }
    }