@@ -233,9 +233,9 @@ public async Task<ChannelConnectionsControllerListChannelConnectionsResponse> L
233233 }
234234 }
235235 }
236- catch ( Exception error )
236+ catch ( Exception _hookError )
237237 {
238- var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , error ) ;
238+ var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , _hookError ) ;
239239 if ( _httpResponse != null )
240240 {
241241 httpResponse = _httpResponse ;
@@ -271,7 +271,8 @@ public async Task<ChannelConnectionsControllerListChannelConnectionsResponse> L
271271 {
272272 Response = httpResponse ,
273273 Request = httpRequest
274- }
274+ } ,
275+ Headers = Utilities . CollectHeaders ( httpResponse . Headers )
275276 } ;
276277 response . ListChannelConnectionsResponseDto = obj ;
277278 return response ;
@@ -483,9 +484,9 @@ public async Task<ChannelConnectionsControllerCreateChannelConnectionResponse>
483484 }
484485 }
485486 }
486- catch ( Exception error )
487+ catch ( Exception _hookError )
487488 {
488- var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , error ) ;
489+ var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , _hookError ) ;
489490 if ( _httpResponse != null )
490491 {
491492 httpResponse = _httpResponse ;
@@ -521,7 +522,8 @@ public async Task<ChannelConnectionsControllerCreateChannelConnectionResponse>
521522 {
522523 Response = httpResponse ,
523524 Request = httpRequest
524- }
525+ } ,
526+ Headers = Utilities . CollectHeaders ( httpResponse . Headers )
525527 } ;
526528 response . GetChannelConnectionResponseDto = obj ;
527529 return response ;
@@ -727,9 +729,9 @@ public async Task<ChannelConnectionsControllerGetChannelConnectionByIdentifierR
727729 }
728730 }
729731 }
730- catch ( Exception error )
732+ catch ( Exception _hookError )
731733 {
732- var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , error ) ;
734+ var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , _hookError ) ;
733735 if ( _httpResponse != null )
734736 {
735737 httpResponse = _httpResponse ;
@@ -765,7 +767,8 @@ public async Task<ChannelConnectionsControllerGetChannelConnectionByIdentifierR
765767 {
766768 Response = httpResponse ,
767769 Request = httpRequest
768- }
770+ } ,
771+ Headers = Utilities . CollectHeaders ( httpResponse . Headers )
769772 } ;
770773 response . GetChannelConnectionResponseDto = obj ;
771774 return response ;
@@ -981,9 +984,9 @@ public async Task<ChannelConnectionsControllerUpdateChannelConnectionResponse>
981984 }
982985 }
983986 }
984- catch ( Exception error )
987+ catch ( Exception _hookError )
985988 {
986- var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , error ) ;
989+ var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , _hookError ) ;
987990 if ( _httpResponse != null )
988991 {
989992 httpResponse = _httpResponse ;
@@ -1019,7 +1022,8 @@ public async Task<ChannelConnectionsControllerUpdateChannelConnectionResponse>
10191022 {
10201023 Response = httpResponse ,
10211024 Request = httpRequest
1022- }
1025+ } ,
1026+ Headers = Utilities . CollectHeaders ( httpResponse . Headers )
10231027 } ;
10241028 response . GetChannelConnectionResponseDto = obj ;
10251029 return response ;
@@ -1225,9 +1229,9 @@ public async Task<ChannelConnectionsControllerDeleteChannelConnectionResponse>
12251229 }
12261230 }
12271231 }
1228- catch ( Exception error )
1232+ catch ( Exception _hookError )
12291233 {
1230- var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , error ) ;
1234+ var _httpResponse = await this . SDKConfiguration . Hooks . AfterErrorAsync ( new AfterErrorContext ( hookCtx ) , null , _hookError ) ;
12311235 if ( _httpResponse != null )
12321236 {
12331237 httpResponse = _httpResponse ;
@@ -1250,7 +1254,8 @@ public async Task<ChannelConnectionsControllerDeleteChannelConnectionResponse>
12501254 {
12511255 Response = httpResponse ,
12521256 Request = httpRequest
1253- }
1257+ } ,
1258+ Headers = Utilities . CollectHeaders ( httpResponse . Headers )
12541259 } ;
12551260 }
12561261 else if ( responseStatusCode == 414 )
0 commit comments