versity / versitygw

versity s3 gateway
https://www.versity.com/products/versitygw/
Apache License 2.0
169 stars 21 forks source link

[Feature] - Add HostId values for REST XML error responses #823

Open lrm25 opened 1 week ago

lrm25 commented 1 week ago

Describe the solution you'd like Error responses coming directly from S3 have a format similar to the following:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>MissingRequestBodyError</Code><Message>Request Body is empty</Message><RequestId>QD651ANCQX2QXBWR</RequestId><HostId>1U0g3tI0BtEqJNbi0pg2wgtSjhIK2h+YGWDjTDiMiLHGhHxydxZlU3L/B9aohbXWxMdlk+lEkF+36yeDzfBaMaxNAPH8L6XP</HostId></Error>

Via versitygw, the RequestId and HostId are both empty. RequestId can remain empty, since there are currently not any plans to implement it, but adding the HostId may be useful for load balancing setups.