Upstream versity/versitygw state of the touched files before 91e4790870
This commit is contained in:
1 parent
d5ed12db2b
commit
efecf29ac0
6 files changed
+14
-124
No files matched your search
@@ -984,20 +984,6 @@ func GetCopySourceObjectTooLargeErr(limit int64) APIError {
|
||||
}
|
||||
}
|
||||
|
||||
// Returns illegal location constraint APIError. An empty constraint stands for
|
||||
// a CreateBucket request that carried no LocationConstraint at all.
|
||||
func GetIllegalLocationConstraintErr(constraint string) APIError {
|
||||
if constraint == "" {
|
||||
constraint = "unspecified"
|
||||
}
|
||||
|
||||
return APIError{
|
||||
Code: "IllegalLocationConstraintException",
|
||||
Description: fmt.Sprintf("The %s location constraint is incompatible for the region specific endpoint this request was sent to.", constraint),
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
}
|
||||
}
|
||||
|
||||
func GetInvalidRedirectCodeErr(input int) APIError {
|
||||
return APIError{
|
||||
Code: "InvalidRequest",
|
||||
|
||||
Reference in new issue
Block a user