studio-b12 / gowebdav

A golang WebDAV client library and command line tool.
BSD 3-Clause "New" or "Revised" License
309 stars 89 forks source link

Return actual status codes instead of 400 #52

Closed fischor closed 2 years ago

fischor commented 2 years ago

Status codes sometimes get rewritten to simply 400. This happens e.g. when on a Write when there is an authentication issue that should actually return code 401.

With this PR the actual status codes are propagated.

fischor commented 2 years ago

There has already an issue for error handling been raised with #28.

zekroTJA commented 2 years ago

I would consider this PR to be sufficient for now but I don't want to merge it without @chripo taking a look over it and confirming it before as well.

chripo commented 2 years ago

Thank you for reporting and further investigations. I really appreciate it! I'm going to close it in favor of GH-54