@@ -116,7 +116,7 @@ where
116116 let mut event = apis:: event:: Event :: default ( ) ;
117117 let result = api_impl
118118 . as_ref ( )
119- . get_payment_method_by_id ( & mut event, & method, & host, & cookies, & claims, & path_params)
119+ . get_payment_method_by_id ( & mut event, method, host, cookies, claims, path_params)
120120 . await ;
121121
122122 let mut response = Response :: builder ( ) ;
@@ -170,13 +170,8 @@ where
170170 response. body ( Body :: from ( body_content) )
171171 }
172172 } ,
173- Err ( why) => {
174- // Application code returned an error. This should not happen, as the implementation should
175- // return a valid response.
176- return api_impl
177- . as_ref ( )
178- . handle_error ( & method, & host, & cookies, why)
179- . await ;
173+ Err ( _why) => {
174+ return response_with_status_code_only ( StatusCode :: INTERNAL_SERVER_ERROR ) ;
180175 }
181176 } ;
182177
@@ -284,7 +279,7 @@ where
284279 let mut event = apis:: event:: Event :: default ( ) ;
285280 let result = api_impl
286281 . as_ref ( )
287- . get_payment_methods ( & mut event, & method, & host, & cookies, & claims)
282+ . get_payment_methods ( & mut event, method, host, cookies, claims)
288283 . await ;
289284
290285 let mut response = Response :: builder ( ) ;
@@ -315,13 +310,8 @@ where
315310 response. body ( Body :: from ( body_content) )
316311 }
317312 } ,
318- Err ( why) => {
319- // Application code returned an error. This should not happen, as the implementation should
320- // return a valid response.
321- return api_impl
322- . as_ref ( )
323- . handle_error ( & method, & host, & cookies, why)
324- . await ;
313+ Err ( _why) => {
314+ return response_with_status_code_only ( StatusCode :: INTERNAL_SERVER_ERROR ) ;
325315 }
326316 } ;
327317
@@ -449,7 +439,7 @@ where
449439 let mut event = apis:: event:: Event :: default ( ) ;
450440 let result = api_impl
451441 . as_ref ( )
452- . post_make_payment ( & mut event, & method, & host, & cookies, & claims, & body)
442+ . post_make_payment ( & mut event, method, host, cookies, claims, body)
453443 . await ;
454444
455445 let mut response = Response :: builder ( ) ;
@@ -503,13 +493,8 @@ where
503493 response. body ( Body :: from ( body_content) )
504494 }
505495 } ,
506- Err ( why) => {
507- // Application code returned an error. This should not happen, as the implementation should
508- // return a valid response.
509- return api_impl
510- . as_ref ( )
511- . handle_error ( & method, & host, & cookies, why)
512- . await ;
496+ Err ( _why) => {
497+ return response_with_status_code_only ( StatusCode :: INTERNAL_SERVER_ERROR ) ;
513498 }
514499 } ;
515500
0 commit comments