+ /**
+ * Secure resource is discovered.
+ */
+ ES_SECURE_RESOURCE_IS_DISCOVERED = 1,
+
+ /**
+ * Enrollee discovery fails in cloud provisioning
+ */
+ ES_ENROLLEE_DISCOVERY_FAILURE = 11,
+
+ /**
+ * Valid GET or POST request fails for some reason.
+ * This failure may happen when it failed to receive any response from Enrollee by a timeout threshold
+ */
+ ES_COMMUNICATION_ERROR,
+
+ /**
+ * Security opertion is not supported because Mediator is built as unsecured mode.
+ */
+ ES_SEC_OPERATION_IS_NOT_SUPPORTED,
+
+ /**
+ * Security resource discovery fails due to loss of discovery packet or absence of the resource in a network
+ */
+ ES_SECURE_RESOURCE_DISCOVERY_FAILURE,
+
+ /**
+ * Ownership transfer fails due to one of unexpected reasons.
+ * E.g. A packet loss even with retransmission happens during ownership transfer.
+ * E.g. Mediator's owned status is 'unowned'
+ * E.g. A user confirmation for random pin-based or certificate-based OT fails
+ */
+ ES_OWNERSHIP_TRANSFER_FAILURE = 20,
+
+ /**
+ * Ownership transfer which is cert-based method fails due to user confirmation is denied.
+ */
+ ES_USER_DENIED_CONFIRMATION_REQ,
+
+ /**
+ * Ownership transfer which is cert-based method fails due to wrong certificate.
+ */
+ ES_AUTHENTICATION_FAILURE_WITH_WRONG_CERT,
+
+ /**
+ * Ownership transfer which is random-pin method fails due to wrong pin.
+ */
+ ES_AUTHENTICATION_FAILURE_WITH_WRONG_PIN,
+
+ /**
+ * Ownership information is not synchronized between Mediator and Enrollee.
+ * e.g. A mediator's PDM DB has an ownership information to the found enrollee
+ * but it is actually owned by other mediator.
+ * That can happen where the found enrollee is reset and performed in easy setup without any inform to the first mediator.
+ * e.g. A list of owned devices managed in mediator's PMD db has no element for the found enrollee.
+ * That can happen where only mediator is reset without any inform to the enrollee.
+ * To proceed an ownership transfer to the enrollee, it needs to reset the enrollee's SVR DB for its owner, i.e. the mediator
+ */
+ ES_OWNERSHIP_IS_NOT_SYNCHRONIZED,
+
+ /**
+ * MOT is not supported at the target Enrollee device.
+ *
+ * @note This ESResult values will be returned ONLY IF a mediator is a first owner to an Enrollee.
+ * @note If the mediator gets this values, it means OT has been successfully done
+ * (or already took an ownership, before), but failed MOT configuration.
+ */
+ ES_MOT_NOT_SUPPORTED = 30,
+
+ /**
+ * MOT enabling is failed.
+ *
+ * @note This ESResult values will be returned ONLY IF a mediator is a first owner to an Enrollee.
+ * @note If the mediator gets this values, it means OT has been successfully done
+ * (or already took an ownership, before), but failed MOT configuration.
+ */
+ ES_MOT_ENABLING_FAILURE,