status: Introduce new common status code #49

Merged
fyrchik merged 1 commit from aarifullin/frostfs-api:feat/invalidarg_status into master 2024-06-17 15:30:10 +00:00
2 changed files with 5 additions and 0 deletions

View file

@ -101,6 +101,7 @@ Section of failed statuses independent of the operation.
| WRONG_MAGIC_NUMBER | 1 | [**1025**] Wrong magic of the NeoFS network. Details: - [**0**] Magic number of the served NeoFS network (big-endian 64-bit unsigned integer). |
| SIGNATURE_VERIFICATION_FAIL | 2 | [**1026**] Signature verification failure. |
| NODE_UNDER_MAINTENANCE | 3 | [**1027**] Node is under maintenance. |
| INVALID_ARGUMENT | 4 | [**1028**] Invalid argument error. If the server fails on validation of a request parameter as the client sent it incorrectly, then this code should be used. |

View file

@ -104,6 +104,10 @@ enum CommonFail {
// [**1027**] Node is under maintenance.
NODE_UNDER_MAINTENANCE = 3;
// [**1028**] Invalid argument error. If the server fails on validation of a
// request parameter as the client sent it incorrectly, then this code should be used.
INVALID_ARGUMENT = 4;
}
// Section of statuses for object-related operations.