Storage should return 404 in HTTP status code when object is not found #42287
Unanswered
l2dy
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Storage should respond with status code 404 instead of 400 if object is not found. This was previously proposed in supabase/storage#323 and it's clear that returning 400 is not semantically correct.
Returning 400 with a
statusCodeembedded in response body also makes it more difficult to differentiate different kind of failures without peaking into response body, which is more expensive for reverse proxies and middleware to implement.https://github.com/supabase/storage/blob/6c2355f7be80e2bbb8206a720af34b96fd6f9506/src/storage/renderer/renderer.ts#L59-L66
Beta Was this translation helpful? Give feedback.
All reactions