---
title: "Decide what an S3 HeadObject 403 says about a missing key | Proofline"
description: "On a general purpose bucket, a 403 from HeadObject leaves the key’s existence unknown to a restricted caller."
url: https://proofline.sh/learn/s3-head-object-403-or-404/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# Decide what an S3 HeadObject 403 says about a missing key

On a general purpose bucket, a 403 from HeadObject leaves the key’s existence unknown to a restricted caller. If the object is absent, S3 can return 403 when the caller lacks s3:ListBucket, and 404 when the caller has it.

Permission errors The Proofline team November 24, 2026 1 min read

Suppose the fictional report reader expects `exports/2026-11-24.json` and receives 403. Capture the exact key, bucket, request ID and any specified version. Ask the resource owner to check that exact key with already authorized read access. Use the worker's own role to check a known existing key only when that key is approved for the role. A successful check there confirms that specific read path, while the owner can determine whether the original key was missing. [S3 HeadObject permissions and error handling](https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html)

Keep the producer's delivery problem and the consumer's authorization problem separate in the receipt. Broad listing access changes what the consumer can learn about the bucket and is unnecessary when the owner's exact-key check resolves the incident.

[Trace another denied request](/learn/permission-denied-request-triage/).

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Trace a permission denial to the caller and the policy](/learn/permission-denied-request-triage/)
    
    Permission errors The Proofline team November 24, 2026 3 min read
    
-   ### [Find why S3 listing fails for one prefix](/learn/s3-listbucket-prefix-denied/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
