public static void modify(HttpServletResponse httpResponse, Body body, HaltException halt) {

        httpResponse.setStatus(halt.statusCode());

        if (halt.body() != null) {
            body.set(halt.body());
        } else {
            body.set("");
        }
    }
Modifies the HTTP response and body based on the provided HaltException.

@param httpResponse The HTTP servlet response
@param body         The body content
@param halt         The halt exception object
src/main/java/spark/http/matching/Halt.java