Lines Matching defs:statusCode
116 list($statusCode, $contentType, $body) = $request->post($body);
119 $statusCode,
131 list($statusCode, $contentType, $body) = $request->get();
134 $statusCode,
173 * @param int $statusCode the HTTP status code of the response
191 $statusCode,
197 if ($statusCode >= 400 && $statusCode <= 499) {
198 $this->handle4xx($statusCode, $contentType, $body, $service, $path);
199 } elseif ($statusCode >= 500) {
200 $this->handle5xx($statusCode, $service, $path);
201 } elseif ($statusCode !== 200) {
202 $this->handleUnexpectedStatus($statusCode, $service, $path);
241 * @param int $statusCode the HTTP status code
253 $statusCode,
261 "Received a $statusCode error for $service with no body",
262 $statusCode,
268 "Received a $statusCode error for $service with " .
270 $statusCode,
278 "Received a $statusCode error for $service but could " .
281 $statusCode,
290 $statusCode,
298 $statusCode,
306 * @param int $statusCode the HTTP status code
316 $statusCode,
325 $statusCode,
337 $statusCode,
345 $statusCode,
352 $statusCode,
359 $statusCode,
366 * @param int $statusCode the HTTP status code
372 private function handle5xx($statusCode, $service, $path)
375 "Received a server error ($statusCode) for $service",
376 $statusCode,
382 * @param int $statusCode the HTTP status code
388 private function handleUnexpectedStatus($statusCode, $service, $path)
392 "($statusCode) for $service",
393 $statusCode,