[#308] Correct access denied status code
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
9078296d7d
commit
962d136e73
3 changed files with 30 additions and 9 deletions
|
@ -107,7 +107,7 @@ func (n *layer) putSystemObjectIntoNeoFS(ctx context.Context, p *PutSystemObject
|
|||
ops := new(client.PutObjectParams).WithObject(raw.Object()).WithPayloadReader(p.Reader)
|
||||
oid, err := n.pool.PutObject(ctx, ops, n.CallOptions(ctx)...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, n.transformNeofsError(ctx, err)
|
||||
}
|
||||
|
||||
meta, err := n.objectHead(ctx, p.BktInfo.CID, oid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue