Optimize HTTP status code
Created by: wansir
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Optimize HTTP status code and error message.
Which issue(s) this PR fixes:
Fixes #https://github.com/kubesphere/kubesphere/issues/4496
Does this PR introduced a user-facing change?
None