3.1.5.1 FileDiscoveryAttempt Response

As mentioned in DISCOVERY-RESPONSE (section 2.2.3), a reply is considered a DISCOVERY-RESPONSE only if the HTTP status is set to 200. Any other HTTP status causes the FileDiscoveryAttempt element to be completed immediately. If the HTTP status is 503, the FileDiscoveryAttempt element result is RESULT_OUT_OF_RESOURCES; otherwise, the FileDiscoveryAttempt element result is RESULT_TRANSPORT_ERROR.

When the HTTP status indicates success, the client parses the response's body. An error in body syntax sets the FileDiscoveryAttempt element result to RESULT_UNKNOWN.

The client then examines the /SearchResults/Status element of the body, and sets the FileDiscoveryAttempt element result according to the following table.

Element text

Result

"Success"

RESULT_FOUND

"ContentNotFound"

RESULT_NOT_FOUND

"AccessDenied"

RESULT_ACCESS_DENIED

"CertificateNotFound"

RESULT_CLIENT_CERT_UNKNOWN

"OutOfResources"

RESULT_OUT_OF_RESOURCES

"InvalidSearch"

RESULT_INVALID_SEARCH

"Unknown"

RESULT_UNKNOWN