reva icon indicating copy to clipboard operation
reva copied to clipboard

Incorrect status code in share-create

Open mateusz-garlacz opened this issue 2 years ago • 1 comments

When the same share is created twice, reva returns "code: CODE_INTERNAL message: "error creating share" trace: "a3120392e3bde58291615b89181acebe". Could we use more explicit status code like CODE_ALREADY_EXISTS and more detailed message info?

mateusz-garlacz avatar May 09 '22 21:05 mateusz-garlacz

The same applies to:

  • creating ocm share twice
  • removing share that does not exist
  • updating ocm share that does not exist

Please adjust error codes to more proper ones

@gmgigi96

mateusz-garlacz avatar Aug 21 '22 18:08 mateusz-garlacz