The RGW error responses must contain a RequestId to be compliant with
the Amazon S3 errors. This RequestId is the ID of the request associated
with the error.
Fixes: #13020
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
s->formatter->dump_string("Code", s->err.s3_code);
if (!s->err.message.empty())
s->formatter->dump_string("Message", s->err.message);
+ if (!s->trans_id.empty())
+ s->formatter->dump_string("RequestId", s->trans_id);
s->formatter->close_section();
dump_content_length(s, s->formatter->get_len());
} else {