Open carpawell opened 9 months ago
I'm always frustrated when I see regular problems but cannot assign some well-known status to them. Session token is a good well-structed candidate. We did it once: https://github.com/nspcc-dev/neofs-api/issues/191. Now we also have validation on the SN side and now such errors can be seen by a user: https://github.com/nspcc-dev/neofs-node/pull/2731, https://github.com/nspcc-dev/neofs-node/pull/2727.
Possible status codes:
Not sure all of them (or any of them) are required and having a separate code for them can make user's life easier but for the tests a well structured response for such an important NeoFS part may look pretty.
Is your feature request related to a problem? Please describe.
I'm always frustrated when I see regular problems but cannot assign some well-known status to them. Session token is a good well-structed candidate. We did it once: https://github.com/nspcc-dev/neofs-api/issues/191. Now we also have validation on the SN side and now such errors can be seen by a user: https://github.com/nspcc-dev/neofs-node/pull/2731, https://github.com/nspcc-dev/neofs-node/pull/2727.
Describe the solution you'd like
Possible status codes:
Describe alternatives you've considered
Not sure all of them (or any of them) are required and having a separate code for them can make user's life easier but for the tests a well structured response for such an important NeoFS part may look pretty.