Report this

What is the reason for this report?

Does Spaces support HeadObject (AWS Go SDK)?

Posted on October 18, 2025

Hello,

I’m trying to call HeadObject using the AWS Go SDK. I’m getting a 501 status (not implemented) back from Spaces. Other operations seem to be working fine. If the HEAD operation is indeed not implemented in Spaces, will it be eventually?

Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya, @anodyne

The HEAD Object operation is listed under “Read (Objects)”.

https://docs.digitalocean.com/products/spaces/reference/s3-compatibility/

As a suggestion, if you only need to confirm that an object exists or get its size, listing it by prefix gives you metadata like Size, Key, and LastModified without a direct head call.

Regards

Hey Jordan! Yeah, DigitalOcean Spaces doesn’t currently support the HeadObject operation when using the AWS Go SDK — that’s why you’re seeing the 501 “Not Implemented” error. Other S3-style actions like GetObject or ListObjects work fine, but HeadObject just isn’t available yet. You’ll need to do a small GetObject call or use stored metadata as a workaround for now.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.