Lines Matching refs:response
45 * HTTP response status code.
114 $response = $this->getData();
116 return $response['error'] ?? null;
128 * True if response has error.
130 * @return bool True if response has error
134 $response = $this->getData();
136 return isset($response['error']);
140 * True if response has failed shards.
142 * @return bool True if response has failed shards
211 $response = $this->getResponseString();
212 $this->_response = $response;
280 throw new NotFoundException('Unable to find the field [took]from the response');
287 * Get the _shard statistics for the response.
298 throw new NotFoundException('Unable to find the field [_shards] from the response');
305 * Get the _scroll value for the response.
316 throw new NotFoundException('Unable to find the field [_scroll_id] from the response');
347 $response = $this->_responseString;
348 if (empty($response)) {
353 $response = JSON::parse($response, true, 512, \JSON_BIGINT_AS_STRING);
355 $response = JSON::parse($response);
358 // leave response as is if parse fails
361 if (\is_string($response)) {
362 $response = ['message' => $response];
365 return $response;