forked from TrueCloudLab/frostfs-api
[#187] status: Add detail with supported network magic
Add detail for `WRONG_MAGIC_NUMBER` status code which carries the correct magic of the served network served. Clients will be able to fix incorrect magic and re-send the request. ID is 0, binary format is uint64 in big-endian. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
d9d71ccd66
commit
e09a560d57
1 changed files with 4 additions and 1 deletions
|
@ -81,6 +81,9 @@ enum CommonFail {
|
||||||
// use this code.
|
// use this code.
|
||||||
INTERNAL = 0;
|
INTERNAL = 0;
|
||||||
|
|
||||||
// [**1025**] Wrong magic of the NeoFS network. Not detailed.
|
// [**1025**] Wrong magic of the NeoFS network.
|
||||||
|
// Details:
|
||||||
|
// - [**0**] Magic number of the served NeoFS network (big-endian 64-bit
|
||||||
|
// unsigned integer).
|
||||||
WRONG_MAGIC_NUMBER = 1;
|
WRONG_MAGIC_NUMBER = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue