Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagated HTTP errors in HTTPStore containsItem function #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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