I'm working on a prototype using zarr.js and an authenticated backend. It would be very useful to be able to distinguish between 200, 404 and "something else" HTTP statuses inside the containsItem() function of the HTTPStore, so that one can catch the HTTPError and display a proper error message to the user.
I see that the getItem() function already considers these 3 cases, so I think that the same logic could be applied to containsItem().
Note: I'm working on Fractal project with @jluethi and @tcompa
Hello,
I'm working on a prototype using zarr.js and an authenticated backend. It would be very useful to be able to distinguish between 200, 404 and "something else" HTTP statuses inside the
containsItem()
function of theHTTPStore
, so that one can catch theHTTPError
and display a proper error message to the user.I see that the
getItem()
function already considers these 3 cases, so I think that the same logic could be applied tocontainsItem()
.Note: I'm working on Fractal project with @jluethi and @tcompa