Skip to content

s3 head_object returns ClientError 404 instead of NoSuchKey error #4718

@CGarces

Description

@CGarces

Describe the issue

Related to #2442

head_object raise a ClientError with code 404, but documentation indicates that must throw a NoSuchKey error.

Possible solutions:
1- Change the documentation
2- Reopen #2442 and change the code to raise the correct error

Links

https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html#API_HeadObject_Errors
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/head_object.html#

Metadata

Metadata

Labels

bugThis issue is a confirmed bug.documentationThis is a problem with documentation.investigatingThis issue is being investigated and/or work is in progress to resolve the issue.p3This is a minor priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions