improve error handling of webdavauth
Merge pull request #3810 from owncloud/improve_webdavauth

improve error handling of webdavauth