( details: ReturnType<typeof parseApiErrorResponseBody>, )
| 309 | } |
| 310 | |
| 311 | function hasParsedApiErrorDetails( |
| 312 | details: ReturnType<typeof parseApiErrorResponseBody>, |
| 313 | ): boolean { |
| 314 | return ( |
| 315 | details.errorCode !== undefined || |
| 316 | details.message !== undefined || |
| 317 | details.countryCode !== undefined || |
| 318 | details.countryBlockReason !== undefined || |
| 319 | details.ipPrivacySignals !== undefined |
| 320 | ) |
| 321 | } |
| 322 | |
| 323 | /** |
| 324 | * Extracts HTTP status and structured server error fields from API errors, |
no outgoing calls
no test coverage detected