diff options
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/webdav-curl/webdavcontent.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ucb/source/ucp/webdav-curl/webdavcontent.cxx b/ucb/source/ucp/webdav-curl/webdavcontent.cxx index 96c0a4f1de61..4b3589ea7bf9 100644 --- a/ucb/source/ucp/webdav-curl/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-curl/webdavcontent.cxx @@ -2258,6 +2258,19 @@ uno::Any Content::open( && aDAVOptions.getHttpResponseStatusCode() != SC_INTERNAL_SERVER_ERROR) { // throws exception as if there was a server error, a DAV exception + switch (aDAVOptions.getHttpResponseStatusCode()) + { + case USC_CONNECT_FAILED: + { + CurlUri aUri(aTargetURL); + throw DAVException( + DAVException::DAV_HTTP_CONNECT, + ConnectionEndPointString(aUri.GetHost(), aUri.GetPort()), + aDAVOptions.getHttpResponseStatusText()); + } + default: + break; + } throw DAVException( DAVException::DAV_HTTP_ERROR, aDAVOptions.getHttpResponseStatusText(), aDAVOptions.getHttpResponseStatusCode() ); |