- Newest
- Most votes
- Most comments
Got bored, spelunked in the source code of the library itself, found the answer to my own question. ;)
The SDK itself massages 200 status OK responses into errors for specific API calls, including copyObject.
As of this commit[1] , the operations completeMultipartUpload
, copyObject
, and uploadPartCopy
are flagged[2] as able to return a status code 200 that is actually an error, and there is a handler[3] to coerce those responses into error responses.
[1]: https://github.com/aws/aws-sdk-js/commit/347f2d9b11deea1fd09bff960245801d47edbd5c
[2]: https://github.com/aws/aws-sdk-js/blob/dfb49100f7db707a2479726f911ca31443f5a861/lib/services/s3.js#L13-L15
[3]: https://github.com/aws/aws-sdk-js/blob/dfb49100f7db707a2479726f911ca31443f5a861/lib/services/s3.js#L652
Relevant content
- Accepted Answerasked 6 years ago
- Accepted Answerasked 7 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 9 months ago