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

fixes #10469
This commit is contained in:
Harshavardhana 2020-09-13 21:26:35 -07:00 committed by GitHub
parent 9d95937018
commit 34ea1d2167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},