public static boolean isValidStatusCode(int code) {
        return 1000 <= code && code <= 1003 ||
               1007 <= code && code <= 1014 ||
               3000 <= code;
    }
Tells whether the {@code code} is valid.
core/src/main/java/com/linecorp/armeria/common/websocket/WebSocketCloseStatus.java