diff --git a/api/layer/layer.go b/api/layer/layer.go index 5607de15c..cc159a425 100644 --- a/api/layer/layer.go +++ b/api/layer/layer.go @@ -143,7 +143,7 @@ func (n *layer) GetBucketInfo(ctx context.Context, name string) (*BucketInfo, er } } - return nil, errors.New("bucket not found") + return nil, status.Error(codes.NotFound, "bucket not found") } // ListBuckets returns all user containers. Name of the bucket is a container