public int getLegacyErrorCode() {
        return legacyErrorCode;
    }
Returns the legacy HTTP error code which is related to the binding error. With the 1.6
version of BOSH the use of HTTP errors was deprecated in favor of using errors inside of the
response to the client so that they could be more easily processed on the client side.

@return the legacy HTTP error code which is related to the binding error.
xmppserver/src/main/java/org/jivesoftware/openfire/http/BoshBindingError.java