Description
As of now multiple endpoint contains the code to handle the amazon specific request id-s.
setRequestId(OzoneUtils.getRequestID()); ... return Response.ok().status(HttpStatus.SC_NO_CONTENT).header( "x-amz-request-id", getRequestId()).header("x-amz-id-2", RandomStringUtils.randomAlphanumeric(8, 16)).build();
I propose to handle the request id generation + adding it to the headers in one location which is transparent for all the rest endpoints.