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

DeleteObject operation's StatusCode always System.Net.HttpStatusCode.NoContent #37

Open
SonizciTR opened this issue Oct 25, 2023 · 3 comments

Comments

@SonizciTR
Copy link

Hi;

I am triggering DeleteObject operation. Response objects StatusCode is always System.Net.HttpStatusCode.NoContent but it deletes the file.

File delete operation is successful.

@liaofuda
Copy link
Collaborator

liaofuda commented Nov 1, 2023

您好,这个是对的,删除成功,.net sdk 中HttpStatusCode就是返回的NoContent。

@SonizciTR
Copy link
Author

SonizciTR commented Nov 1, 2023

How could be correct. Delete operaton is 'Successful' so it should be Http 200 code.

Let me more clear; I am not asking is file exist. If I was asking that, then returning No Content is reasonable. But I am triggering a Delete Operation. Return code should be the if the operation is successful or not.

@SonizciTR
Copy link
Author

Is there anyone from Huawei to comment on this? Any eta?

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

No branches or pull requests

2 participants