aeron-client/src/main/java/io/aeron/command/ErrorResponseFlyweight.java
public ErrorResponseFlyweight errorCode(final ErrorCode code)
    {
        buffer.putInt(offset + ERROR_CODE_OFFSET, code.value());
        return this;
    }
public ErrorResponseFlyweight errorCode(final ErrorCode code)
    {
        buffer.putInt(offset + ERROR_CODE_OFFSET, code.value());
        return this;
    }
Set the error code for the command.

@param code for the error
@return flyweight