status: Introduce new common status code #49
Labels
No labels
P0
P1
P2
P3
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-api#49
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-api:feat/invalidarg_status"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
INVALID_ARGUMENT
for common status section;3ca61be249
to144d15bef4
Do we need this for anything specific, or is it just QOL change?
I encountered an issue when I was implementing
apemanager
service infrostfs-node
: for me it looked awkard that errors like"invalid CID"
,"invalid namespace"
,"empty public key"
are returned withServer internal 1024
status code. We know that1024
is the default status code, it is the sunk for all homeless errors. I think we can improve status code recognition for a client and make him fix a request before its next sendingNeed approve from @alexvanin @realloc
Awesome. "Invalid argument" is pretty common return code used in HTTP, gRPC and many more protocols, so it is natural to see it there too.