private static boolean ignoreSocketConnectError(Exception e) {
        if (e instanceof UnsuccessfulRequestException) {
            UnsuccessfulRequestException req = (UnsuccessfulRequestException) e;
            int code = req.getResponse().code();

            // 502 - bad gateway / 503 - service unavailable
            // probably means the socket service is offline, that's ok, no need to send a warning
            return code == 502 || code == 503;
        }

        return false;
    }
Encapsulates a session with the web editor.

<p>A session is tied to a specific user, and can comprise of multiple requests to and
responses from the web editor.</p>
common/src/main/java/me/lucko/luckperms/common/webeditor/WebEditorSession.java