You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like axios is creating an error beforehand and throws that one.
As a result I don't get the status as a field which I need to have a clean error handling depending on the http response code. And I don't want to depend on parsing the returned error message where might or might not be the code included.
Hello @perry-mitchell,
when I use your library in the browser and an exception for like 404 or 401 is thrown, it's not the exception you're creating in
webdav-client/source/response.js
Lines 3 to 12 in d8cd0c6
It seems like axios is creating an error beforehand and throws that one.
As a result I don't get the
status
as a field which I need to have a clean error handling depending on the http response code. And I don't want to depend on parsing the returned error message where might or might not be the code included.example
result
Catching that axios exception and handling it in the already existing handling function would be very helpful.
Thank you very much.
The text was updated successfully, but these errors were encountered: