@@ -335,70 +335,70 @@ partial void ProcessUsersPatchCurrentUserApiV1AuthUsersMePatchResponseContent(
335335 retryReason : global ::System . String . Empty ,
336336 cancellationToken : __effectiveCancellationToken ) ) . ConfigureAwait ( false ) ;
337337 }
338- // Bad Request
339- if ( ( int ) __response . StatusCode == 400 )
338+ //
339+ if ( ( int ) __response . StatusCode == 401 )
340340 {
341- string ? __content_400 = null ;
342- global ::System . Exception ? __exception_400 = null ;
343- global ::Presenton . ErrorModel ? __value_400 = null ;
341+ string ? __content_401 = null ;
342+ global ::System . Exception ? __exception_401 = null ;
344343 try
345344 {
346345 if ( __effectiveReadResponseAsString )
347346 {
348- __content_400 = await __response . Content . ReadAsStringAsync ( __effectiveCancellationToken ) . ConfigureAwait ( false ) ;
349- __value_400 = global ::Presenton . ErrorModel . FromJson ( __content_400 , JsonSerializerContext ) ;
347+ __content_401 = await __response . Content . ReadAsStringAsync ( __effectiveCancellationToken ) . ConfigureAwait ( false ) ;
350348 }
351349 else
352350 {
353- __content_400 = await __response . Content . ReadAsStringAsync ( __effectiveCancellationToken ) . ConfigureAwait ( false ) ;
354-
355- __value_400 = global ::Presenton . ErrorModel . FromJson ( __content_400 , JsonSerializerContext ) ;
351+ __content_401 = await __response . Content . ReadAsStringAsync ( __effectiveCancellationToken ) . ConfigureAwait ( false ) ;
356352 }
357353 }
358354 catch ( global ::System . Exception __ex )
359355 {
360- __exception_400 = __ex ;
356+ __exception_401 = __ex ;
361357 }
362358
363359
364- throw global ::Presenton . ApiException < global :: Presenton . ErrorModel > . Create (
360+ throw global ::Presenton . ApiException . Create (
365361 statusCode : __response . StatusCode ,
366- message : __content_400 ?? __response . ReasonPhrase ?? string . Empty ,
367- innerException : __exception_400 ,
368- responseBody : __content_400 ,
369- responseObject : __value_400 ,
362+ message : __content_401 ?? __response . ReasonPhrase ?? string . Empty ,
363+ innerException : __exception_401 ,
364+ responseBody : __content_401 ,
370365 responseHeaders : global ::System . Linq . Enumerable . ToDictionary (
371366 __response . Headers ,
372367 h => h . Key ,
373368 h => h . Value ) ) ;
374369 }
375- //
376- if ( ( int ) __response . StatusCode == 401 )
370+ // Bad Request
371+ if ( ( int ) __response . StatusCode == 400 )
377372 {
378- string ? __content_401 = null ;
379- global ::System . Exception ? __exception_401 = null ;
373+ string ? __content_400 = null ;
374+ global ::System . Exception ? __exception_400 = null ;
375+ global ::Presenton . ErrorModel ? __value_400 = null ;
380376 try
381377 {
382378 if ( __effectiveReadResponseAsString )
383379 {
384- __content_401 = await __response . Content . ReadAsStringAsync ( __effectiveCancellationToken ) . ConfigureAwait ( false ) ;
380+ __content_400 = await __response . Content . ReadAsStringAsync ( __effectiveCancellationToken ) . ConfigureAwait ( false ) ;
381+ __value_400 = global ::Presenton . ErrorModel . FromJson ( __content_400 , JsonSerializerContext ) ;
385382 }
386383 else
387384 {
388- __content_401 = await __response . Content . ReadAsStringAsync ( __effectiveCancellationToken ) . ConfigureAwait ( false ) ;
385+ __content_400 = await __response . Content . ReadAsStringAsync ( __effectiveCancellationToken ) . ConfigureAwait ( false ) ;
386+
387+ __value_400 = global ::Presenton . ErrorModel . FromJson ( __content_400 , JsonSerializerContext ) ;
389388 }
390389 }
391390 catch ( global ::System . Exception __ex )
392391 {
393- __exception_401 = __ex ;
392+ __exception_400 = __ex ;
394393 }
395394
396395
397- throw global ::Presenton . ApiException . Create (
396+ throw global ::Presenton . ApiException < global :: Presenton . ErrorModel > . Create (
398397 statusCode : __response . StatusCode ,
399- message : __content_401 ?? __response . ReasonPhrase ?? string . Empty ,
400- innerException : __exception_401 ,
401- responseBody : __content_401 ,
398+ message : __content_400 ?? __response . ReasonPhrase ?? string . Empty ,
399+ innerException : __exception_400 ,
400+ responseBody : __content_400 ,
401+ responseObject : __value_400 ,
402402 responseHeaders : global ::System . Linq . Enumerable . ToDictionary (
403403 __response . Headers ,
404404 h => h . Key ,
0 commit comments