We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9bddff commit d11f652Copy full SHA for d11f652
1 file changed
packages/js-sdk/src/volume/index.ts
@@ -103,7 +103,7 @@ export class Volume {
103
signal: config.getSignal(opts?.requestTimeoutMs),
104
})
105
106
- if (res.error?.code === 404) {
+ if (res.response.status === 404) {
107
throw new NotFoundError(`Volume ${volumeId} not found`)
108
}
109
@@ -139,7 +139,7 @@ export class Volume {
139
140
141
142
143
144
145
@@ -202,7 +202,7 @@ export class Volume {
202
203
204
205
206
return false
207
208
0 commit comments