Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refine error code for bucket migration #1407

Merged
merged 1 commit into from
May 24, 2024

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 merged commit 8f43c55 into develop May 24, 2024
11 checks passed
@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.

4 participants