public int validateSimpleRequest(String method, String url) {
        if (method.equals("GET") || method.equals("POST")) {
            if (fileManager.findFile(url).exists()) {
                return 200;
            } else {
                return 404;
            }
        }
        if (method.equals("HEAD")) {
            return 400;
        } else {
            return 501;
        }
    }