Skip to content

Commit b1ca46e

Browse files
Update API gen
1 parent 23264cf commit b1ca46e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Certify.Server/Certify.Server.Hub.Api.Client/Certify.Server.Hub.Api.Client.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4398,6 +4398,16 @@ public virtual async System.Threading.Tasks.Task<ActionResult> PerformManagedCha
43984398
return objectResponse_.Object;
43994399
}
44004400
else
4401+
if (status_ == 502)
4402+
{
4403+
var objectResponse_ = await ReadObjectResponseAsync<ProblemDetails>(response_, headers_, cancellationToken).ConfigureAwait(false);
4404+
if (objectResponse_.Object == null)
4405+
{
4406+
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
4407+
}
4408+
throw new ApiException<ProblemDetails>("Bad Gateway", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
4409+
}
4410+
else
44014411
{
44024412
var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
44034413
throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null);

0 commit comments

Comments
 (0)