@@ -329,6 +329,8 @@ UserApi <- R6::R6Class(
329329
330330 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
331331 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 )
332334 } else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
333335 ApiResponse $ new(" API client error" , resp )
334336 } else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -374,6 +376,8 @@ UserApi <- R6::R6Class(
374376
375377 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
376378 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 )
377381 } else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
378382 ApiResponse $ new(" API client error" , resp )
379383 } else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -419,6 +423,8 @@ UserApi <- R6::R6Class(
419423
420424 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
421425 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 )
422428 } else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
423429 ApiResponse $ new(" API client error" , resp )
424430 } else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -461,6 +467,8 @@ UserApi <- R6::R6Class(
461467
462468 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
463469 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 )
464472 } else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
465473 ApiResponse $ new(" API client error" , resp )
466474 } else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -509,6 +517,8 @@ UserApi <- R6::R6Class(
509517 }
510518 )
511519 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 )
512522 } else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
513523 ApiResponse $ new(" API client error" , resp )
514524 } else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -561,6 +571,8 @@ UserApi <- R6::R6Class(
561571 }
562572 )
563573 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 )
564576 } else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
565577 ApiResponse $ new(" API client error" , resp )
566578 } else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -595,6 +607,8 @@ UserApi <- R6::R6Class(
595607
596608 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
597609 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 )
598612 } else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
599613 ApiResponse $ new(" API client error" , resp )
600614 } else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
@@ -647,6 +661,8 @@ UserApi <- R6::R6Class(
647661
648662 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
649663 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 )
650666 } else if (httr :: status_code(resp ) > = 400 && httr :: status_code(resp ) < = 499 ) {
651667 ApiResponse $ new(" API client error" , resp )
652668 } else if (httr :: status_code(resp ) > = 500 && httr :: status_code(resp ) < = 599 ) {
0 commit comments