mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
fix: return correct error code for MetadataTooLarge (#10470)
fixes #10469
This commit is contained in:
parent
9d95937018
commit
34ea1d2167
@ -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…
Reference in New Issue
Block a user