Skip to content

Propagated HTTP errors in HTTPStore containsItem function#151

Open
zonia3000 wants to merge 1 commit intogzuidhof:masterfrom
zonia3000:containsItem-http-status
Open

Propagated HTTP errors in HTTPStore containsItem function#151
zonia3000 wants to merge 1 commit intogzuidhof:masterfrom
zonia3000:containsItem-http-status

Conversation

@zonia3000
Copy link

@zonia3000 zonia3000 commented Feb 29, 2024

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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant