class HealthyHandler implements HttpHandler {

    private final byte[] responseBytes;
    private final String contentType;

    public HealthyHandler() {
        String responseString = "Exporter is healthy.\n";
        this.responseBytes = responseString.getBytes(StandardCharsets.UTF_8);
        this.contentType = "text/plain; charset=utf-8";
    }

    @Override
    public void handle(HttpExchange exchange) throws IOException {<FILL_FUNCTION_BODY>}
}

        try {
            exchange.getResponseHeaders().set("Content-Type", contentType);
            exchange.getResponseHeaders().set("Content-Length", Integer.toString(responseBytes.length));
            exchange.sendResponseHeaders(200, responseBytes.length);
            exchange.getResponseBody().write(responseBytes);
        } finally {
            exchange.close();
        }
    
<no_super_class>