HttpErrorUnion
PackageAxial.HttpClient
A recoverable HTTP transport, timeout, status, or decoding failure.
Specification
Kind
Union
Members
16
Examples
0
describeSignature
HttpError.describe _arg1
tryResponseSignature
HttpError.tryResponse _arg1
isTransientSignature
HttpError.isTransient _arg1
transientPolicySignature
HttpError.transientPolicy maxAttempts baseDelay
IsInvalidRequestSignature
this.IsInvalidRequest
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Union cases | ||
| IsInvalidRequest | this.IsInvalidRequest | No description available. |
| IsDecodeFailed | this.IsDecodeFailed | No description available. |
| IsStatus | this.IsStatus | No description available. |
| IsTimedOut | this.IsTimedOut | No description available. |
| IsConnectionFailed | this.IsConnectionFailed | No description available. |
| IsCanceled | this.IsCanceled | No description available. |
| InvalidRequest | InvalidRequest message | The request could not be constructed, for example from a malformed URL. |
| ConnectionFailed | ConnectionFailed(request, message) | The connection could not be established or was dropped before a response arrived. |
| TimedOut | TimedOut(request, timeout) | The per-request timeout elapsed before the response completed. |
| Canceled | Canceled message | The workflow was canceled while the request was in flight. |
| Status | Status response | The response arrived with a status outside the request's expectation. |
| DecodeFailed | DecodeFailed(message, response) | The response body could not be decoded into the requested value. |
| Operations | ||
| describe | HttpError.describe _arg1 | Formats an HTTP error with its redacted request context. |
| tryResponse | HttpError.tryResponse _arg1 | Returns the response transcript when the error carries one. |
| isTransient | HttpError.isTransient _arg1 | Indicates whether retrying the same request could plausibly succeed. |
| transientPolicy | HttpError.transientPolicy maxAttempts baseDelay | Builds a retry policy with exponential backoff that retries only transient HTTP errors. |
Union cases
kind:member
kind:member
kind:member
kind:member
kind:member
Operations
kind:member
kind:member
kind:member
Indicates whether retrying the same request could plausibly succeed.
Connection failures, timeouts, and 408/429/5xx statuses are transient.
<example><code>if HttpError.isTransient error then retry ()</code></example>
Parameters
| Name | Type | Description |
|---|---|---|
| _arg1 | HttpError |
Returns
bool
kind:member
Builds a retry policy with exponential backoff that retries only transient HTTP errors.
<example><code>workflow |> Flow.Runtime.retry (HttpError.transientPolicy 4 (TimeSpan.FromMilliseconds 200.0))</code></example>
Parameters
| Name | Type | Description |
|---|---|---|
| maxAttempts | int | |
| baseDelay | TimeSpan |
Returns
RetryPolicy<HttpError>

