@@ -329,6 +329,8 @@ UserApi <- R6::R6Class(
329
329
330
330
if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
331
331
ApiResponse $ new(NULL , resp )
332
+ } else if (httr :: status_code(resp ) > = 300 && httr :: status_code(resp ) < = 399 ) {
333
+ ApiResponse $ new(paste(" Server returned " , httr :: status_code(resp ) , " response status code." ), resp )
332
334
} else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
333
335
ApiResponse $ new(" API client error" , resp )
334
336
} else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -374,6 +376,8 @@ UserApi <- R6::R6Class(
374
376
375
377
if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
376
378
ApiResponse $ new(NULL , resp )
379
+ } else if (httr :: status_code(resp ) > = 300 && httr :: status_code(resp ) < = 399 ) {
380
+ ApiResponse $ new(paste(" Server returned " , httr :: status_code(resp ) , " response status code." ), resp )
377
381
} else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
378
382
ApiResponse $ new(" API client error" , resp )
379
383
} else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -419,6 +423,8 @@ UserApi <- R6::R6Class(
419
423
420
424
if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
421
425
ApiResponse $ new(NULL , resp )
426
+ } else if (httr :: status_code(resp ) > = 300 && httr :: status_code(resp ) < = 399 ) {
427
+ ApiResponse $ new(paste(" Server returned " , httr :: status_code(resp ) , " response status code." ), resp )
422
428
} else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
423
429
ApiResponse $ new(" API client error" , resp )
424
430
} else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -461,6 +467,8 @@ UserApi <- R6::R6Class(
461
467
462
468
if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
463
469
ApiResponse $ new(NULL , resp )
470
+ } else if (httr :: status_code(resp ) > = 300 && httr :: status_code(resp ) < = 399 ) {
471
+ ApiResponse $ new(paste(" Server returned " , httr :: status_code(resp ) , " response status code." ), resp )
464
472
} else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
465
473
ApiResponse $ new(" API client error" , resp )
466
474
} else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -509,6 +517,8 @@ UserApi <- R6::R6Class(
509
517
}
510
518
)
511
519
ApiResponse $ new(deserializedRespObj , resp )
520
+ } else if (httr :: status_code(resp ) > = 300 && httr :: status_code(resp ) < = 399 ) {
521
+ ApiResponse $ new(paste(" Server returned " , httr :: status_code(resp ) , " response status code." ), resp )
512
522
} else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
513
523
ApiResponse $ new(" API client error" , resp )
514
524
} else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -561,6 +571,8 @@ UserApi <- R6::R6Class(
561
571
}
562
572
)
563
573
ApiResponse $ new(deserializedRespObj , resp )
574
+ } else if (httr :: status_code(resp ) > = 300 && httr :: status_code(resp ) < = 399 ) {
575
+ ApiResponse $ new(paste(" Server returned " , httr :: status_code(resp ) , " response status code." ), resp )
564
576
} else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
565
577
ApiResponse $ new(" API client error" , resp )
566
578
} else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -595,6 +607,8 @@ UserApi <- R6::R6Class(
595
607
596
608
if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
597
609
ApiResponse $ new(NULL , resp )
610
+ } else if (httr :: status_code(resp ) > = 300 && httr :: status_code(resp ) < = 399 ) {
611
+ ApiResponse $ new(paste(" Server returned " , httr :: status_code(resp ) , " response status code." ), resp )
598
612
} else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
599
613
ApiResponse $ new(" API client error" , resp )
600
614
} else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -647,6 +661,8 @@ UserApi <- R6::R6Class(
647
661
648
662
if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
649
663
ApiResponse $ new(NULL , resp )
664
+ } else if (httr :: status_code(resp ) > = 300 && httr :: status_code(resp ) < = 399 ) {
665
+ ApiResponse $ new(paste(" Server returned " , httr :: status_code(resp ) , " response status code." ), resp )
650
666
} else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
651
667
ApiResponse $ new(" API client error" , resp )
652
668
} else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
0 commit comments