improve error handling of webdavauth

Improve error handling of webdavauth in case of remote server errors

please review @DeepDiver1975 @butonic @LukasReschke @schiesbn