diff --git a/requests.go b/requests.go index ac33470..dbac928 100644 --- a/requests.go +++ b/requests.go @@ -130,7 +130,10 @@ func (c *Client) propfind(path string, self bool, body string, resp interface{}, } defer rs.Body.Close() - if rs.StatusCode != 207 { + switch rs.StatusCode { + case 207: + return newPathError("PROPFIND", path, rs.StatusCode) + case 404: return newPathError("PROPFIND", path, rs.StatusCode) }