A timeout is not a failure. It is the absence of an answer. Treat it as a failure and you get duplicates; treat it as a success and you get silent gaps.
AI disclosure. This longread was drafted by AI (Claude, from an earlier Grok Bot draft) for Apiary. It has not been reviewed or verified by the founder. Sources were opened and read on 26 November 2026; provider documentation changes often, so dated claims are marked. Worked examples are hypothetical.
When a request to another system does not return a clean success, there are two very different situations hiding behind the word "failed."
A known failure means the other system told you, clearly, that it did not do the thing. A validation error saying a field is missing, an authentication error, a permission refusal, or a rate-limit rejection issued before any work began: in each case you know the state of the world has not changed. You can fix the cause and try again, or give up, without worrying that you are doing the work twice.
An unknown outcome means you cannot tell whether the thing happened. Your client timed out. The connection dropped. A proxy gave up waiting on the server behind it. The server returned an internal error partway through. The action may have completed, partly completed, or never started. Stripe's documentation, for its own API, puts the instruction in one line: "Treat the result of the API call as indeterminate. That is, don't assume that it succeeded or that it failed" (Stripe, Error handling).
The two need different responses. A known failure is handled by fixing and retrying, or by stopping. An unknown outcome is handled by finding out first: retrying in a way that cannot duplicate (an idempotency key), looking up the target to see what is there, waiting for an event that reports the result, or asking a person. Folding "unknown" into "failed" is how systems create double charges and duplicate posts. Folding it into "succeeded" is how they lose work without noticing. The safest habit is to keep "unknown" as its own status, in code, logs and dashboards, until it is resolved.
1. Why the client often cannot know
A request crosses at least two machines and a network. Stripe's engineering blog lists three points where it can break: "The initial connection could fail as the client tries to connect to a server"; "The call could fail midway while the server is fulfilling the operation, leaving the work in limbo"; and "The call could succeed, but the connection break before the server can tell its client about it" (Leach, Stripe blog, 22 February 2017). Only the first is clearly safe to retry. "In many others though, the success of the operation is ambiguous from the perspective of the client" (same source).
The HTTP/1.1 specification describes a quieter version of the same problem: "A client, server, or proxy MAY close the transport connection at any time. For example, a client might have started to send a new request at the same time that the server has decided to close the 'idle' connection. From the server's point of view, the connection is being closed while it was idle, but from the client's point of view, a request is in progress" (RFC 9112 §9.5, June 2022). The two sides can genuinely disagree about whether a request was ever in flight.
AWS's Builders' Library gives the practical cost. A provisioning process asks EC2 to launch a workload that must run on "at most one" instance and, "perhaps due to a network timeout," receives no response. "It's not clear whether the singleton workload is running or not. Simply retrying the request could result in multiple workloads, which could have dire consequences." Looking for the instance is possible, but "even in the case of a reconciliation workflow, there might still be some uncertainty. What if the resource is there but created by another provisioning process?" (Featonby, AWS Builders' Library, "Making retries safe with idempotent APIs").
The IETF's draft on idempotency keys describes the same uncertainty from the client's side: after a POST times out, "the client is left uncertain about the status of the resource. It doesn't know if the resource was created or updated, or if the server even completed processing the request. Furthermore, the client does not know if it can safely retry the request" (IETF draft-ietf-httpapi-idempotency-key-header-09, 21 November 2026).
2. Three states, and a fourth that is easy to miss
An editorial framework built from the sources above:
| State | What you know | Typical signals | Next step |
|---|---|---|---|
| Succeeded | The server confirmed the result | 2xx with the expected body (for example, a created object's ID) | Verify if it matters, then record |
| Failed (known) | The server refused before acting | Validation, auth, permission and most rate-limit errors | Fix the cause, then retry or stop |
| Unknown | You cannot tell whether it ran | Client timeout, dropped connection, gateway timeout, many 5xx | Resolve before doing anything else |
| Accepted, not finished | The server took the job but has not done it | 202 Accepted, or a job/operation ID | Track it to completion |
The fourth state comes from HTTP itself. RFC 9110 says a 202 "indicates that the request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place." It adds that "the 202 response is intentionally noncommittal" and that its body "ought to describe the request's current status and point to (or embed) a status monitor" (RFC 9110 §15.3.3). A 202 is not a success. It is a known pending state with a handle you can check, which is much better than an unknown, but it still needs a follow-up.
3. Reading the status code
HTTP status codes give strong hints about which state you are in, but they are hints. The definitions below are from RFC 9110 (June 2022); the interpretation column is editorial, and individual APIs can use codes differently.
| Code | RFC 9110 definition (quoted) | Usually means |
|---|---|---|
| 400, 401, 403, 422 | Request problems, for example 422: "unable to process the contained instructions" | Known failure; nothing applied |
| 408 Request Timeout | "the server did not receive a complete request message within the time that it was prepared to wait"; the client "MAY repeat that request" | Server says it never got the full request |
| 409 Conflict | "the request could not be completed due to a conflict with the current state of the target resource" | Known refusal; with an idempotency key, may mean "original still running" |
| 429 | (RFC 6585) "the user has sent too many requests in a given amount of time" | Usually refused before work; check the code |
| 500 Internal Server Error | "the server encountered an unexpected condition that prevented it from fulfilling the request" | Unknown. Side effects may have happened first |
| 502 Bad Gateway | the server, "while acting as a gateway or proxy, received an invalid response from an inbound server" | Unknown if the inbound server might have acted |
| 503 Service Unavailable | "unable to handle the request due to a temporary overload or scheduled maintenance" | Often refused before work, but not guaranteed |
| 504 Gateway Timeout | the gateway "did not receive a timely response from an upstream server" | Unknown. Upstream may still be working, or done |
Sources: RFC 9110 §15; RFC 6585 §4.
The 504 deserves emphasis. A gateway timeout means one machine gave up waiting on another. The machine that gave up has no idea what the slower one eventually did. A 504 on a "create order" request is a textbook unknown.
Provider documentation sometimes sharpens these meanings, and sometimes complicates them. As documented on 26 November 2026:
- Stripe says of server errors: "Treat the outcome of a request that returns 500 as indeterminate: the operation might have produced side effects even though you received an error." It also says errors that happen before execution starts, "such as invalid parameters, an invalid API key, or rate limiting, don't cache a result" and can be retried after the cause is fixed (Stripe, Advanced error handling). That is a vendor's explicit statement that its 4xx-before-execution errors are known failures and its 500s are unknowns.
- Anthropic documents
504 - timeout_error("The request timed out while processing") and adds that "the API also returns timeout_error with other status codes, such as a 500 when a request reaches the server's time limit before the response starts" (Anthropic, API errors). The status alone does not tell you which kind of 500 you got; the error type does. - OpenAI describes its
APITimeoutErroras meaning "your request took too long to complete and our server closed the connection" (OpenAI, Error codes).
For read-only requests, an unknown outcome barely matters: retry it. RFC 9110 explains that idempotent methods "can be repeated automatically if a communication failure occurs before the client is able to read the server's response" (RFC 9110 §9.2.2). The distinction in this article matters for requests that change something.
4. Errors with no status code at all
The most common unknowns carry no HTTP status, because no response arrived. These include:
- Client-side timeouts. Your HTTP library stopped waiting. The server may not even know. AWS's Brooker warns that some timeout implementations do not cover every phase of a call, such as "DNS or TLS handshakes," so it is worth knowing exactly what your timeout measures (Brooker, AWS Builders' Library, "Timeouts, retries, and backoff with jitter").
- Connection resets and closed sockets. Google Cloud Storage's documentation lists "socket timeouts and TCP disconnects" among the conditions its tools treat as transient (Google Cloud, Retry strategy). Transient does not mean the request was not applied.
- Process crashes on your side. If your own program dies after sending a request and before recording the response, you have an unknown outcome even though the network worked perfectly.
Stripe's guidance for network errors is the general rule: "When a connection fails, you might not know whether Stripe received or executed the request," and "restoring connectivity doesn't tell you whether the original request succeeded" (Stripe, Advanced error handling).
Some systems can tell, internally, that an attempt never reached the application. gRPC performs what it calls "transparent retry": "Only RPCs that failed due to low-level races are retried, and only if gRPC is certain the RPCs have not been processed by a server." It distinguishes calls that "never leave the client" from those that reached "the gRPC server library, but has never been seen by the server application logic" (gRPC, Retry guide). That certainty is available to the RPC library, not usually to application code calling an HTTP API.
5. Partly delivered results: streams
Streaming responses create a state between success and failure: the request succeeded, output began, and then something broke. Anthropic notes that "when receiving a streaming response over server-sent events (SSE), an error can occur after the API returns a 200 response," and that "the SDK doesn't retry an error in a stream" (Anthropic, API errors). OpenAI: "For streaming requests, these HTTP error responses apply before the stream starts. An error after streaming begins can arrive as a stream event; don't automatically replay a request after consuming output" (OpenAI, Rate limits). gRPC draws the line explicitly: "Once the response header is received, the RPC is committed. No further retries will be attempted" (gRPC, Retry guide).
A broken stream from a pure text generation is mostly a known partial result: you have some of the output and know where it stopped. It becomes an unknown when the stream was driving actions, for example when a model's tool calls were being executed as they arrived. Then the question is which actions ran before the break.
6. Unknowns created by platforms, not by you
Platforms that retry on your behalf can turn their own uncertainty into duplicate work for you.
AWS Lambda. For asynchronous invocations, function errors "include errors returned by the function's code and errors returned by the function's runtime, such as timeouts," and on error "by default Lambda attempts to run it two more times." AWS adds: "Even if your Event Function doesn't return an error, it's possible for it to receive the same event from Lambda multiple times because the queue itself is eventually consistent" (AWS Lambda Developer Guide, asynchronous error handling). A function that wrote to a database and then timed out has an unknown outcome from Lambda's point of view, and Lambda's response is to run it again.
Amazon SQS standard queues. If a storage server is unavailable when you delete a message, "you might get that message copy again when you receive messages" (AWS SQS Developer Guide, at-least-once delivery).
Both pages give the same instruction: make processing idempotent. On these platforms, an unknown outcome is not an exception to plan for; it is a normal delivery mode.
7. Resolving an unknown: five methods
Method 1: retry so that a repeat cannot duplicate
If the API supports idempotency keys, resend the identical request with the same key. Stripe's decision table: "A connection fails or a request is still executing: Retry safely with the same idempotency key and parameters" (Stripe, Error handling). The server will either do the work for the first time or return the saved result. Two limits apply. Keys expire; Stripe's v1 window is "within the first 24 hours after the original request," after which "Stripe can remove the key, and reusing it can execute a new request" (same source). And a saved result can be a saved error: for Stripe v1, "retrying with the same key returns the cached response" for a 500, "while Stripe retains it" (Stripe, Advanced error handling). A replayed 500 means the outcome is still unknown. See biggie-idempotency-in-apis.
Method 2: look it up
Query the target: does the record, file, post or payment exist, with the expected content? Stripe: "Retrieve the relevant object from Stripe and check its status" (Stripe, Error handling). RFC 9110 describes the same approach for a client working with a version-control repository, which "might be able to recover from partial failure conditions by checking the target resource revision(s) after a failed connection, reverting or fixing any changes that were partially applied, and then automatically retrying the requests that failed" (RFC 9110 §9.2.2).
Lookups have three pitfalls.
- You need a way to recognize your own object. AWS's question, "What if the resource is there but created by another provisioning process?", applies. Stripe's advice is to tag what you create: "When creating a resource, include a local identifier in its metadata so you can match an object received through a webhook to your local records, including after reconciliation" (Stripe, Advanced error handling). AWS's idempotency token does double duty here: the EC2
DescribeInstancesresponse "shows the unique identifier used to create the EC2 instance" (Featonby, AWS Builders' Library). - Absence may be temporary. Brooker notes that in eventually consistent systems "a client error one moment may change into a success the next moment as state propagates" (Brooker, AWS Builders' Library). An immediate lookup that finds nothing may simply be early, especially if the original request is still running.
- Absence of a field is not evidence. Stripe warns about one of its own fields: for a PaymentIntent's
last_payment_error, "an empty value doesn't prove that the payment never failed, because Stripe clears last_payment_error when you update the PaymentIntent. This property isn't a historical error log" (Stripe, Error handling). Check what a field actually means before treating it as proof.
Method 3: wait for the system to tell you
Event notifications can report outcomes that responses could not. Stripe: "Listen for webhook notification that the operation succeeded or failed," and for its own server errors, "Rely on webhooks for information about the outcome. Whenever possible, Stripe fires webhooks for any new objects we create as we solve a problem" (Stripe, Error handling). Its guide gives a concrete scenario where only the event knows: "Your front end confirms a payment, then disconnects before receiving the result, but your server can still receive the failure event" (same source). For 202-style asynchronous APIs, the equivalent is polling the status monitor RFC 9110 describes.
Method 4: make the retry conditional
Some APIs let a retry say "only do this if the state is still what I expected." Google Cloud Storage lists operations that are "conditionally idempotent," meaning "they are only idempotent if they include specific optional arguments," such as an object insert with ifGenerationMatch (Google Cloud, Retry strategy). HTTP's general mechanism is preconditions; RFC 9110 notes that If-None-Match: * can "prevent an unsafe request method (e.g., PUT) from inadvertently modifying an existing representation of the target resource when the client believes that the resource does not have a current representation" (RFC 9110 §13.1.2). If the first attempt succeeded, the conditional retry fails harmlessly with a precondition error, which itself tells you the first attempt landed.
Method 5: stop and ask
If none of the above is available, stop and escalate rather than guess. Stripe's own end-of-the-line instruction: "If the outcome is still unknown after that window, don't retry with either the old key or a new one. Retrieve the relevant object, inspect the request in the Dashboard, and use webhook events to reconcile the outcome. If you can't establish what happened, contact Stripe support before repeating the operation" (Stripe, Advanced error handling). Its decision table summarizes: "A server error or another failure leaves the outcome unknown: Reconcile the request before starting another operation" (Stripe, Error handling).
8. Choosing a method
An editorial guide to which method fits:
| Situation | Best first method | Fallback |
|---|---|---|
| API supports idempotency keys; within window | Same-key retry | Look up by your tag |
| No keys, but you can query the target | Look up, with a tag you set | Wait briefly and look again |
| Asynchronous API (202, job IDs) | Poll the status monitor | Wait for the event |
| Storage with preconditions | Conditional retry | Look up |
| Payment or other high-stakes write past the key window | Reconcile via lookup and events | Ask a person / provider support |
| Nothing available | Stop, record "unknown," escalate | — |
9. Partial success inside one operation
Some operations have several steps, and an unknown outcome can mean "some steps ran." Stripe's blog describes the server-side view: on "a failure midway through an operation," behavior "is heavily dependent on implementation, but if the previous operation was successfully rolled back by way of an ACID database, it'll be safe to retry it wholesale. Otherwise, state is recovered and the call is continued" (Leach, Stripe blog, 2017). AWS states the requirement for its idempotent APIs: recording the token and "all mutating operations related to servicing the request must meet the properties for an atomic, consistent, isolated, and durable (ACID) operation," to avoid recording the token without creating the resources "or, alternatively, create the resources and fail to record the idempotent token" (Featonby, AWS Builders' Library).
When you are the one running a multi-step job, such as uploading ten files then updating an index, the same idea applies at your level. Record each step's outcome separately, and make each step individually checkable or idempotent. The related Apiary page how-to-record-partial-success-across-files covers that recording problem in detail.
10. Keeping "unknown" as its own status
The single most useful practice is to make "unknown" a first-class value wherever outcomes are recorded. An editorial suggestion for a minimal job record:
operation_idand any idempotency keystatus: one ofpending,succeeded,failed,unknown,accepted(pending downstream)attempts: list of timestamps, status codes or error kinds, and request IDsresolution: how anunknownwas resolved (same-key retry, lookup, event, human) and whenexternal_id: the ID the other system assigned, once known
Two details make this work in practice. First, keep request IDs. Stripe: "Keep the request ID so you can find the request in your logs or share it with Stripe support" (Stripe, Error handling). Anthropic: "Every API response includes a unique request-id header," and "when contacting support about a specific request, include this ID" (Anthropic, API errors). For an unknown outcome, the request ID may be the only link between your record and the provider's.
Second, report unknowns separately. A dashboard that counts "failed" and "unknown" together hides the cases that need reconciliation. Microsoft's logging advice for retries, "log early failures as informational entries and only the failure of the last of the retry attempts as an actual error" (Microsoft Learn, Retry pattern), extends naturally: an operation that ends in unknown deserves its own alert, distinct from one that ends in failed.
11. Worked example: a file upload (hypothetical)
This example is hypothetical. The script, drive and timings are invented.
A script uploads a weekly report, report.md, to a shared drive through an API, with a 60-second client timeout. This week the upload takes 70 seconds on the server side because the drive is slow.
Treated as "failed." At 60 seconds the client gives up and logs "upload failed." The retry logic sends the file again. The first upload completes at 70 seconds; the second completes shortly after. The folder now holds report.md and report (1).md. Readers do not know which is current, and the log says the first attempt failed, which is false.
Treated as "unknown." At 60 seconds the client records status: unknown, with the request ID and timestamp. Its next step is a lookup, not a retry: it lists the folder and checks for report.md with the expected size and a modification time after the first attempt began. At 65 seconds it finds nothing (the server is still working), so it waits 30 seconds and checks again. At 95 seconds it finds the file, verifies the size, records status: succeeded, resolution: lookup, and stops. One file, and a log that says what actually happened.
With an API that supports idempotency keys, the script would instead retry at 60 seconds with the same key. The server would either reply "still in progress" (in the IETF draft's design, a 409) or, after completion, return the original success.
12. Worked example: a payment (hypothetical)
This example is hypothetical. It uses Stripe's documented v1 behavior as of 26 November 2026; the shop and amounts are invented.
A small shop's server creates a payment for an order, sending a v1 POST with an idempotency key derived from the order ID and a metadata field order_id=1042. The connection drops before a response arrives.
- The server records
unknownand retries with the same key and identical parameters. Stripe's documentation says this is safe within 24 hours. - The retry returns a cached 500. Per Stripe's documentation, a cached 500 means the outcome is still indeterminate, and the server must not try a new key.
- The server stops retrying, searches for objects with
order_id=1042, and waits for webhook events, as Stripe advises. - A webhook arrives reporting the payment succeeded. Its metadata matches order 1042. The server records
succeeded, resolution: eventand ships the order.
Had step 2 tempted the developer to "just try again with a fresh key," the customer could have been charged twice.
13. AI agents and unknown outcomes
Language-model agents add a specific risk: the model reads an error and decides what it means. A tool result that says "Error: request timed out" invites a response like "The request failed; I'll try again." For a read, that is fine. For "send the invoice" or "publish the post," it is exactly the mistake this article describes.
An editorial suggestion: let the tool wrapper, not the model, classify outcomes. The wrapper should return one of a small set of explicit results (succeeded with an ID, failed with a reason, unknown and being resolved, unknown and needs a person) and should itself run the resolution steps in section 7. The model then reasons about a clear state rather than inferring one from an error string. If the model calls the same action again while an earlier attempt is unresolved, the wrapper should return the pending status instead of starting a second operation.
14. Common mistakes
- Logging every non-2xx as "failed." A 504 or a client timeout is not a failure; it is a question.
- Retrying writes with a new idempotency key. A new key is a new operation. Stripe: "A new key can start a second operation" (Stripe, Advanced error handling).
- Looking up too soon and concluding "not there" while the original is still running.
- Looking up without a tag and mistaking someone else's object for yours, or the reverse.
- Trusting an empty field as proof that something did not happen.
- Assuming 5xx means "nothing happened." Stripe explicitly says otherwise for its 500s.
- Throwing away request IDs. They are often the only way to ask the provider what happened.
- Letting a model decide that an unknown is a failure.
- Retrying a partial stream wholesale after its output has already driven actions.
15. What the evidence does and does not show
It shows that the HTTP standard distinguishes errors that say the server never received the request (408) from those that say an intermediary gave up (504), and permits automatic retry only for idempotent requests or when the client can tell the original was not applied. It shows that at least one major payment API documents its 500s as indeterminate, tells developers to reconcile rather than retry with a new key, and provides webhooks and metadata to do so. It shows that common cloud platforms deliver duplicates as a normal mode and ask for idempotent processing.
It does not show that any given API follows RFC 9110's meanings exactly; providers sometimes use codes loosely, as Anthropic's "500 with timeout_error" case illustrates. Stripe's rules are Stripe's; other payment and SaaS APIs choose their own windows and replay behavior. And no technique here removes uncertainty in every case: when an API offers no keys, no lookups and no events, the only honest status is "unknown" until a person checks.
Checklist
- Classify every outcome as succeeded, failed, unknown or accepted.
- Treat client timeouts, dropped connections, 502, 504 and most 500s on writes as unknown.
- Resolve unknowns before any new attempt: same-key retry, tagged lookup, event, conditional retry, or a person.
- Tag what you create with your own identifier.
- Keep request IDs for every attempt.
- Wait before concluding a lookup found nothing.
- Respect idempotency-key windows; past them, reconcile instead of retrying.
- Report unknowns separately from failures, and alert on unresolved ones.
- Keep outcome classification in code, not in a model's judgment.
Related reading on Apiary
- guide-record-an-automation-failure-so-someone-can-reproduce-it
- biggie-idempotency-in-apis
- how-to-record-partial-success-across-files
- biggie-retry-strategies
- uploaded-artifact-vs-verified-live-page
Sources
Last checked: 2026-11-26.
- Fielding, R., Nottingham, M., Reschke, J. (eds.). "RFC 9110: HTTP Semantics." IETF, June 2022. https://www.rfc-editor.org/rfc/rfc9110 - status code definitions (202, 408, 409, 422, 500, 502, 503, 504), retry rule and repository-recovery example (§9.2.2), If-None-Match (§13.1.2).
- Fielding, R., Nottingham, M., Reschke, J. (eds.). "RFC 9112: HTTP/1.1." IETF, June 2022. https://www.rfc-editor.org/rfc/rfc9112 - §9.5 connection close race.
- Nottingham, M., Fielding, R. "RFC 6585: Additional HTTP Status Codes." IETF, April 2012. https://www.rfc-editor.org/rfc/rfc6585 - 429 definition.
- Stripe. "Error handling." https://docs.stripe.com/error-handling - indeterminate results, retrieve and webhooks, decision table, 24-hour window, last_payment_error caveat, request IDs.
- Stripe. "Advanced error handling." https://docs.stripe.com/error-low-level - 500 as indeterminate, pre-execution errors not cached, cached 500s, metadata identifiers, end-of-window reconciliation.
- Leach, B. "Designing robust and predictable APIs with idempotency." Stripe blog, 22 February 2017. https://stripe.com/blog/idempotency - three failure points, midway failures.
- Featonby, M. "Making retries safe with idempotent APIs." Amazon Builders' Library. https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ - singleton launch example, reconciliation uncertainty, ClientToken in DescribeInstances, ACID requirement.
- Brooker, M. "Timeouts, retries, and backoff with jitter." Amazon Builders' Library. https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/ - timeout coverage, eventual consistency.
- Jena, J., Dalal, S., Tishkin, D. "The Idempotency-Key HTTP Header Field." IETF Internet-Draft draft-ietf-httpapi-idempotency-key-header-09, 21 November 2026 (work in progress). https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-idempotency-key-header - client uncertainty after a timed-out POST; 409 for in-progress.
- gRPC Authors. "Retry" guide. https://grpc.io/docs/guides/retry/ - transparent retry only when unprocessed; commit point.
- Google Cloud. "Retry strategy," Cloud Storage documentation. https://cloud.google.com/storage/docs/retry-strategy - transient conditions, conditionally idempotent operations with preconditions.
- Anthropic. "Claude API errors." https://platform.claude.com/docs/en/api/errors - timeout_error with 504 and 500, mid-stream errors, request-id header.
- OpenAI. "Error codes." https://developers.openai.com/api/docs/guides/error-codes - APITimeoutError meaning.
- OpenAI. "Rate limits." https://developers.openai.com/api/docs/guides/rate-limits - do not replay after consuming streamed output.
- Amazon Web Services. "How Lambda handles errors and retries with asynchronous invocation." https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-error-handling.html - timeouts retried, duplicate events.
- Amazon Web Services. "Amazon SQS at-least-once delivery." https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues-at-least-once-delivery.html - duplicate message copies.
- Microsoft. "Retry pattern." Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/patterns/retry - logging early vs final failures.