* An Error subclass with optional HTTP metadata attached by third-party SDKs.
| 43 | * An Error subclass with optional HTTP metadata attached by third-party SDKs. |
| 44 | */ |
| 45 | interface ErrorWithHttpMetadata extends Error { |
| 46 | readonly status?: number; |
| 47 | readonly statusCode?: number; |
| 48 | readonly data?: unknown; |
| 49 | readonly response?: { |
| 50 | readonly status?: number; |
| 51 | readonly statusCode?: number; |
| 52 | readonly data?: unknown; |
| 53 | readonly body?: unknown; |
| 54 | readonly headers?: Record<string, string>; |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | /** A Node.js-style error with an error code (e.g. ECONNREFUSED). */ |
| 59 | interface NodeError extends Error { |
nothing calls this directly
no outgoing calls
no test coverage detected