Skip to content

Commit

Permalink
[nspcc-dev#82] status: Add status code for wrong network magic
Browse files Browse the repository at this point in the history
After the recent update of NeoFS V2 protocol all requests must carry
correct network magic.

Add `WRONG_MAGIC_NUMBER` code to `CommonFail` section.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
  • Loading branch information
Leonard Lyubich authored and cthulhu-rider committed Jan 10, 2022
1 parent b1fca68 commit d9d71cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions status/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,7 @@ enum CommonFail {
// If the server cannot match failed outcome to the code, it should
// use this code.
INTERNAL = 0;

// [**1025**] Wrong magic of the NeoFS network. Not detailed.
WRONG_MAGIC_NUMBER = 1;
}

0 comments on commit d9d71cc

Please sign in to comment.