(value: unknown)
| 93 | } |
| 94 | |
| 95 | function readStatusCode(value: unknown): number | undefined { |
| 96 | if (!(value instanceof Error)) return undefined |
| 97 | const status = (value as unknown as { statusCode?: unknown }).statusCode |
| 98 | return typeof status === 'number' ? status : undefined |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Maps an execution error to an HTTP status code. Errors thrown from the |
no outgoing calls
no test coverage detected