cloudserver
cloudserver copied to clipboard
COMPAT: AWS returns additional XML tags for InvalidArgument Error
If an invalid encoding type is given, AWS returns an error with additional XML tags ArgumentName, ArgumentValue and HostId. For example, if an invalid encoding 'foo' is given, see difference of the two responses below.
AWS response:
<Error>
<Code>InvalidArgument</Code>
<Message>Invalid Encoding Method specified in Request</Message>
<ArgumentName>encoding-type</ArgumentName>
<ArgumentValue>foo</ArgumentValue>
<RequestId>[...]</RequestId>
<HostId>[...]</HostId>
</Error>
S3 response (response with changes made in https://github.com/scality/S3/pull/402):
<Error>
<Code>InvalidArgument</Code>
<Message>Invalid Encoding Method specified in Request</Message>
<Resource></Resource>
<RequestId>[...]</RequestId>
</Error>
@bennettbuchanan May be you can pick this up yourself 😄