class HealthHandler implements Handler {

    /**
     * 参考代理路径
     */
    public static final String HANDLER_PATH = "/healthz";


    private static final HealthHandler instance = new HealthHandler();

    /**
     * 获取实例
     */
    public static HealthHandler getInstance() {
        return instance;
    }


    private static final Options options = Options.def().add(Feature.EnumUsingName);

    @Override
    public void handle(Context ctx) throws Throwable {<FILL_FUNCTION_BODY>}
}

        HealthCheckResult result = HealthChecker.check();

        switch (result.getStatus()) {
            case DOWN:
                ctx.status(503);
                break;
            case ERROR:
                ctx.status(500);
                break;
            default:
                ctx.status(200);
        }

        ctx.outputAsJson(ONode.stringify(result, options));
    
<no_super_class>