@@ -176,7 +176,7 @@ func (s *Checkouts) List(ctx context.Context, request operations.CheckoutsListRe
176176
177177 _ , err = s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, nil , err )
178178 return nil , err
179- } else if utils .MatchStatusCodes ([]string {"422" , " 4XX" , "5XX" }, httpRes .StatusCode ) {
179+ } else if utils .MatchStatusCodes ([]string {"4XX" , "5XX" }, httpRes .StatusCode ) {
180180 _httpRes , err := s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, httpRes , nil )
181181 if err != nil {
182182 return nil , err
@@ -473,7 +473,7 @@ func (s *Checkouts) Create(ctx context.Context, request components.CheckoutCreat
473473
474474 _ , err = s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, nil , err )
475475 return nil , err
476- } else if utils .MatchStatusCodes ([]string {"422" , " 4XX" , "5XX" }, httpRes .StatusCode ) {
476+ } else if utils .MatchStatusCodes ([]string {"4XX" , "5XX" }, httpRes .StatusCode ) {
477477 _httpRes , err := s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, httpRes , nil )
478478 if err != nil {
479479 return nil , err
@@ -706,7 +706,7 @@ func (s *Checkouts) Get(ctx context.Context, id string, opts ...operations.Optio
706706
707707 _ , err = s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, nil , err )
708708 return nil , err
709- } else if utils .MatchStatusCodes ([]string {"404" , "422" , " 4XX" , "5XX" }, httpRes .StatusCode ) {
709+ } else if utils .MatchStatusCodes ([]string {"4XX" , "5XX" }, httpRes .StatusCode ) {
710710 _httpRes , err := s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, httpRes , nil )
711711 if err != nil {
712712 return nil , err
@@ -968,7 +968,7 @@ func (s *Checkouts) Update(ctx context.Context, id string, checkoutUpdate compon
968968
969969 _ , err = s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, nil , err )
970970 return nil , err
971- } else if utils .MatchStatusCodes ([]string {"403" , "404" , "422" , " 4XX" , "5XX" }, httpRes .StatusCode ) {
971+ } else if utils .MatchStatusCodes ([]string {"4XX" , "5XX" }, httpRes .StatusCode ) {
972972 _httpRes , err := s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, httpRes , nil )
973973 if err != nil {
974974 return nil , err
@@ -1237,7 +1237,7 @@ func (s *Checkouts) ClientGet(ctx context.Context, clientSecret string, opts ...
12371237
12381238 _ , err = s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, nil , err )
12391239 return nil , err
1240- } else if utils .MatchStatusCodes ([]string {"404" , "410" , "422" , " 4XX" , "5XX" }, httpRes .StatusCode ) {
1240+ } else if utils .MatchStatusCodes ([]string {"4XX" , "5XX" }, httpRes .StatusCode ) {
12411241 _httpRes , err := s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, httpRes , nil )
12421242 if err != nil {
12431243 return nil , err
@@ -1514,7 +1514,7 @@ func (s *Checkouts) ClientUpdate(ctx context.Context, clientSecret string, check
15141514
15151515 _ , err = s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, nil , err )
15161516 return nil , err
1517- } else if utils .MatchStatusCodes ([]string {"403" , "404" , "410" , "422" , " 4XX" , "5XX" }, httpRes .StatusCode ) {
1517+ } else if utils .MatchStatusCodes ([]string {"4XX" , "5XX" }, httpRes .StatusCode ) {
15181518 _httpRes , err := s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, httpRes , nil )
15191519 if err != nil {
15201520 return nil , err
@@ -1818,7 +1818,7 @@ func (s *Checkouts) ClientConfirm(ctx context.Context, clientSecret string, chec
18181818
18191819 _ , err = s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, nil , err )
18201820 return nil , err
1821- } else if utils .MatchStatusCodes ([]string {"400" , "403" , "404" , "410" , "422" , " 4XX" , "5XX" }, httpRes .StatusCode ) {
1821+ } else if utils .MatchStatusCodes ([]string {"4XX" , "5XX" }, httpRes .StatusCode ) {
18221822 _httpRes , err := s .hooks .AfterError (hooks.AfterErrorContext {HookContext : hookCtx }, httpRes , nil )
18231823 if err != nil {
18241824 return nil , err
0 commit comments