@@ -47,7 +47,7 @@ def _get_kwargs(
4747 }
4848
4949
50- def _parse_response (* , response : httpx .Response ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
50+ def _parse_response (* , response : httpx .Response ) -> Optional [Union [HTTPValidationError , List [AModel ]]]:
5151 if response .status_code == 200 :
5252 response_200 = []
5353 _response_200 = response .json ()
@@ -61,10 +61,14 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[List[AModel],
6161 response_422 = HTTPValidationError .from_dict (response .json ())
6262
6363 return response_422
64+ if response .status_code == 423 :
65+ response_423 = HTTPValidationError .from_dict (response .json ())
66+
67+ return response_423
6468 return None
6569
6670
67- def _build_response (* , response : httpx .Response ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
71+ def _build_response (* , response : httpx .Response ) -> Response [Union [HTTPValidationError , List [AModel ]]]:
6872 return Response (
6973 status_code = response .status_code ,
7074 content = response .content ,
@@ -78,7 +82,7 @@ def sync_detailed(
7882 client : Client ,
7983 an_enum_value : List [AnEnum ],
8084 some_date : Union [datetime .date , datetime .datetime ],
81- ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
85+ ) -> Response [Union [HTTPValidationError , List [AModel ]]]:
8286 kwargs = _get_kwargs (
8387 client = client ,
8488 an_enum_value = an_enum_value ,
@@ -97,7 +101,7 @@ def sync(
97101 client : Client ,
98102 an_enum_value : List [AnEnum ],
99103 some_date : Union [datetime .date , datetime .datetime ],
100- ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
104+ ) -> Optional [Union [HTTPValidationError , List [AModel ]]]:
101105 """ Get a list of things """
102106
103107 return sync_detailed (
@@ -112,7 +116,7 @@ async def asyncio_detailed(
112116 client : Client ,
113117 an_enum_value : List [AnEnum ],
114118 some_date : Union [datetime .date , datetime .datetime ],
115- ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
119+ ) -> Response [Union [HTTPValidationError , List [AModel ]]]:
116120 kwargs = _get_kwargs (
117121 client = client ,
118122 an_enum_value = an_enum_value ,
@@ -130,7 +134,7 @@ async def asyncio(
130134 client : Client ,
131135 an_enum_value : List [AnEnum ],
132136 some_date : Union [datetime .date , datetime .datetime ],
133- ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
137+ ) -> Optional [Union [HTTPValidationError , List [AModel ]]]:
134138 """ Get a list of things """
135139
136140 return (
0 commit comments