Skip to content

HEAD /object/authenticated/<bucket>/not_found should use status code 404 #323

@Xuanwo

Description

@Xuanwo

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions