Tejaskriya commented on code in PR #5160:
URL: https://github.com/apache/ozone/pull/5160#discussion_r1287006556


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java:
##########
@@ -126,6 +126,10 @@ private S3ErrorTable() {
   public static final OS3Exception NO_OVERWRITE = new OS3Exception(
       "Conflict", "Cannot overwrite file with directory", HTTP_CONFLICT);
 
+  public static final OS3Exception METADATA_TOO_LARGE = new OS3Exception(
+      "MetadataTooLarge", "Your metadata headers exceed the maximum allowed " +
+      "metadata size.", HTTP_BAD_REQUEST);

Review Comment:
   I have referred to aws documentation: 
https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList
 for the description. Instead of changing it in S3ErrorTable, to make the error 
message for suitable for this case, I have set the error message in 
EndpointBase to the originally more explicit message. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to