frostfs-node/pkg/services/util
Leonard Lyubich 8a2a096680 [#1175] services/sign: Convert error to status return
In previous implementation `SignService` converted all `error` values to
`INTERNAL` server failure status. That was done for simplification only.
There is a need to transmit status errors as corresponding status
messages.

Make `SignService` to unwrap errors and convert them to status message
during writing to the response. Non-status errors are converted to
`INTERNAL` server failures. Status errors can also be wrapped in the
depths of the executable code, so `SignService` tries to unwrap them.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-03-15 13:03:23 +03:00
..
response [#1115] *: link TODOs to corresponding issues 2022-02-11 12:58:59 +03:00
server.go [#233] services/object: Implement new Get algorithm 2020-12-11 17:19:37 +03:00
sign.go [#1175] services/sign: Convert error to status return 2022-03-15 13:03:23 +03:00