@@ -249,8 +249,8 @@ describe('request methods', () => {
249
249
expect ( ( e as VertexAIError ) . code ) . to . equal (
250
250
VertexAIErrorCode . FETCH_ERROR
251
251
) ;
252
- expect ( ( e as VertexAIError ) . httpErrorDetails ?. status ) . to . equal ( 500 ) ;
253
- expect ( ( e as VertexAIError ) . httpErrorDetails ?. statusText ) . to . equal (
252
+ expect ( ( e as VertexAIError ) . customErrorData ?. status ) . to . equal ( 500 ) ;
253
+ expect ( ( e as VertexAIError ) . customErrorData ?. statusText ) . to . equal (
254
254
'AbortError'
255
255
) ;
256
256
expect ( ( e as VertexAIError ) . message ) . to . include ( '500 AbortError' ) ;
@@ -276,8 +276,8 @@ describe('request methods', () => {
276
276
expect ( ( e as VertexAIError ) . code ) . to . equal (
277
277
VertexAIErrorCode . FETCH_ERROR
278
278
) ;
279
- expect ( ( e as VertexAIError ) . httpErrorDetails ?. status ) . to . equal ( 500 ) ;
280
- expect ( ( e as VertexAIError ) . httpErrorDetails ?. statusText ) . to . equal (
279
+ expect ( ( e as VertexAIError ) . customErrorData ?. status ) . to . equal ( 500 ) ;
280
+ expect ( ( e as VertexAIError ) . customErrorData ?. statusText ) . to . equal (
281
281
'Server Error'
282
282
) ;
283
283
expect ( ( e as VertexAIError ) . message ) . to . include ( '500 Server Error' ) ;
@@ -303,8 +303,8 @@ describe('request methods', () => {
303
303
expect ( ( e as VertexAIError ) . code ) . to . equal (
304
304
VertexAIErrorCode . FETCH_ERROR
305
305
) ;
306
- expect ( ( e as VertexAIError ) . httpErrorDetails ?. status ) . to . equal ( 500 ) ;
307
- expect ( ( e as VertexAIError ) . httpErrorDetails ?. statusText ) . to . equal (
306
+ expect ( ( e as VertexAIError ) . customErrorData ?. status ) . to . equal ( 500 ) ;
307
+ expect ( ( e as VertexAIError ) . customErrorData ?. statusText ) . to . equal (
308
308
'Server Error'
309
309
) ;
310
310
expect ( ( e as VertexAIError ) . message ) . to . include ( '500 Server Error' ) ;
@@ -343,8 +343,8 @@ describe('request methods', () => {
343
343
expect ( ( e as VertexAIError ) . code ) . to . equal (
344
344
VertexAIErrorCode . FETCH_ERROR
345
345
) ;
346
- expect ( ( e as VertexAIError ) . httpErrorDetails ?. status ) . to . equal ( 500 ) ;
347
- expect ( ( e as VertexAIError ) . httpErrorDetails ?. statusText ) . to . equal (
346
+ expect ( ( e as VertexAIError ) . customErrorData ?. status ) . to . equal ( 500 ) ;
347
+ expect ( ( e as VertexAIError ) . customErrorData ?. statusText ) . to . equal (
348
348
'Server Error'
349
349
) ;
350
350
expect ( ( e as VertexAIError ) . message ) . to . include ( '500 Server Error' ) ;
0 commit comments