(int $httpCode, array $curlResult, array $cache)
| 261 | } |
| 262 | |
| 263 | private function buildHttpErrorResult(int $httpCode, array $curlResult, array $cache): array { |
| 264 | return [ |
| 265 | 'header' => [], |
| 266 | 'dimensions' => [], |
| 267 | 'data' => [], |
| 268 | 'rawdata' => $curlResult, |
| 269 | 'error' => $curlResult['request_error'] ?? $this->getHttpErrorMessage($httpCode, $curlResult['data'] ?? []), |
| 270 | 'cache' => $cache, |
| 271 | ]; |
| 272 | } |
| 273 | |
| 274 | private function getHttpErrorMessage(int $httpCode, array $responseData): string { |
| 275 | if ($httpCode === 401) { |
no test coverage detected