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
Actually the metadata like the status code 404 should be returned in the header for most requests instead of in the body. Currently I found that supabase always returns 400 in the header and stores its actual status_code in the body.
Returning 400 instead of 404 was a legacy decision to force the user to branch error handling with the response code.
It is arguably not semantically correct as you mentioned.
We are happy to rethink our error handling status code for the next version and return the correct status code
Hey! Just want to jump in here and say this would be nice for us at talc. Making this change would improve the clarity of our opentelemetry logging, as we categorize some logs into errors based on status code.
Bug report
Describe the bug
supabase storage will return 400 error code for HEAD request while object not found.
To Reproduce
https://github.com/supabase/storage-api/blob/1794d04ab0e7259d9058293e257f442015252ec3/src/storage/renderer/renderer.ts#L45-L52
Expected behavior
The status code should be
404
since HEAD request will not have a body and there is no way for client to know what happened.Screenshots
None
System information
Not related
Additional context
apache/opendal#2200
The text was updated successfully, but these errors were encountered: