fix: return correct error code for MetadataTooLarge (#10470)

fixes #10469
master
Harshavardhana 4 years ago committed by GitHub
parent 9d95937018
commit 34ea1d2167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/api-errors.go

@ -971,7 +971,7 @@ var errorCodes = errorCodeMap{
HTTPStatusCode: http.StatusBadRequest,
},
ErrMetadataTooLarge: {
Code: "InvalidArgument",
Code: "MetadataTooLarge",
Description: "Your metadata headers exceed the maximum allowed metadata size.",
HTTPStatusCode: http.StatusBadRequest,
},

Loading…
Cancel
Save