(err: unknown)
| 61 | * Determines if a thrown "error" is a HttpError |
| 62 | */ |
| 63 | export function isHttpError(err: unknown): err is HttpError { |
| 64 | return typeof err === 'object' && err !== null && 'status' in err && 'body' in err; |
| 65 | } |
no outgoing calls
no test coverage detected