MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / autumnStatusOf

Function autumnStatusOf

apps/cloud/src/extensions/billing/service.ts:65–70  ·  view source on GitHub ↗
(failure: AutumnFailure)

Source from the content-addressed store, hash-verified

63 * underneath it has one; `undefined` for a network or SDK-level failure.
64 */
65export const autumnStatusOf = (failure: AutumnFailure): number | undefined => {
66 const cause = failure.cause;
67 if (typeof cause !== "object" || cause === null) return undefined;
68 const { statusCode } = cause as { readonly statusCode?: unknown };
69 return typeof statusCode === "number" ? statusCode : undefined;
70};
71
72// ---------------------------------------------------------------------------
73// Read-only customer lookup

Callers 1

handlers.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected