findify / s3mock

Embedded S3 server for easy mocking
MIT License
387 stars 107 forks source link

Set ErrorCode to NoSuchKey when key not found #126

Open rtvlad opened 6 years ago

rtvlad commented 6 years ago

AmazonS3Exception thrown when a resource is not found should contain the error code string NoSuchKey. Currently, the response for a get metadata request on a missing resource is:

com.amazonaws.services.s3.model.AmazonS3Exception: Not Found (Service: Amazon S3; Status Code: 404; Error Code: 404 Not Found; Request ID: null; S3 Extended Request ID: null), S3 Extended Request ID: null