[GH-ISSUE #667] Request method HEAD returns 404 even if object exists #115

Closed
opened 2026-03-03 12:08:24 +03:00 by kerem · 0 comments
Owner

Originally created by @patricktree on GitHub (Jan 31, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/667

Hi!

The real Google Cloud Storage API returns 200 if a object is retrieved with HTTP method HEAD.
I use that to check if an object with a given ID exists.

However, fake-gcs-server always returns 404 (even though the same object returns 200 if HTTP method GET is used).

Would be cool if you could add support for HEAD!
I am using fake-gcs-server heavily for one of my projects :)

(Image Version I am referring to: fsouza/fake-gcs-server:1.34.0@sha256:aba91da230e56d7a1ad69d899f2fd0970ba2a765620904b94e3ec7f694a75a8b)

Originally created by @patricktree on GitHub (Jan 31, 2022). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/667 Hi! The real Google Cloud Storage API returns 200 if a object is retrieved with HTTP method `HEAD`. I use that to check if an object with a given ID exists. However, fake-gcs-server always returns 404 (even though the same object returns 200 if HTTP method `GET` is used). Would be cool if you could add support for `HEAD`! I am using fake-gcs-server heavily for one of my projects :) (Image Version I am referring to: `fsouza/fake-gcs-server:1.34.0@sha256:aba91da230e56d7a1ad69d899f2fd0970ba2a765620904b94e3ec7f694a75a8b`)
kerem 2026-03-03 12:08:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#115
No description provided.