Added 404 handling for S3 adapter.