private void getRequest(HttpExchange he) throws IOException {
        try {
            String path = he.getRequestURI().getPath();
            int lastIndex = path.lastIndexOf("/");
            if (lastIndex > 0) {
                int id = Integer.parseInt(path.substring(lastIndex + 1));
                response = facade.getOnePersonAsJson(id);
                status = 200;
            } else {
                response = facade.getPersonsAsJSON();
                status = 200;
            }
        } catch (NumberFormatException nfe) {
            response = "id is not a number";
            status = 404;
        }
    }