- Newest
- Most votes
- Most comments
I would imagine the examples that you see are brief and specific and should not be regarded as full, production ready examples. As you are aware, it is always best to ensure you check results and handle errors appropriately.
Expect the unexpected and handle accordingly.
Hope this helps!
After some testing I found that if HttpStatusCode is anything other then something in the 200 range, AmazonS3Client methods will throw an AmazonS3Exception with a helpful message. There really is no need to check HttpStatusCode in the response object unless you want to check which of the OK status types you are getting (OK, No content, etc.).
I don't know if AmazonS3Client methods internally check the checksum but it still should be checked after saving the file to disk to ensure it's save correctly.
answered 2 years ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 years ago
