public static DocumentOperationStatus fromMessageBusErrorCodes(Set<Integer> errorCodes) {
        if (errorCodes.size() == 1 && errorCodes.contains(DocumentProtocol.ERROR_NO_SPACE))
            return SERVER_ERROR;

        return REQUEST_ERROR;
    }
Enum with possible outcomes of a single document feeding operation:
<ul>
<li>OK: Document was successfully added/updated/removed</li>
<li>REQUEST_ERROR: User-made error, for example invalid document format</li>
<li>SERVER_ERROR: Server-made error, for example insufficient disk space</li>
</ul>

@author freva
vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentOperationStatus.java