diff --git a/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs b/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs index 011834f..f4f20ae 100644 --- a/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs +++ b/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs @@ -419,6 +419,38 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Dust.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // if ((int)__response.StatusCode == 403) { diff --git a/src/libs/Dust/openapi.yaml b/src/libs/Dust/openapi.yaml index db63043..4801e36 100644 --- a/src/libs/Dust/openapi.yaml +++ b/src/libs/Dust/openapi.yaml @@ -8461,6 +8461,9 @@ } } }, + "400": { + "description": "Invalid file content (e.g. a CSV with an unsupported encoding)" + }, "403": { "description": "Permission denied" },