static FileApiErrorCodes get(int code) {
        for (FileApiErrorCodes error : FileApiErrorCodes.values()) {
            if (error.code() == code) {
                return error;
            }
        }
        return null;
    }
Error codes used in RPC responses for file distribution

@author hmusum
filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileApiErrorCodes.java