Skip to content

Conversation

@ruojunm
Copy link
Collaborator

@ruojunm ruojunm commented May 23, 2024

Description

fix: refine error code for bucket migration

Rationale

During bucket migration, it could happens that users's buckets do not have enough quota or the bucket is still in gc or in migrating. So for such cases, the current 500 error code is not reasonable. This pR changes the error cod to 406.

Example

N/A

Changes

N/A

Potential Impacts

N/A

@ruojunm ruojunm marked this pull request as ready for review May 23, 2024 03:07
@ruojunm ruojunm requested review from keefel and will-2012 as code owners May 23, 2024 03:07
@ruojunm ruojunm merged commit 8f43c55 into develop May 24, 2024
@ruojunm ruojunm deleted the fix-bucket-mig-errorcode branch May 24, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants