improve error handling of webdavauth