public function Response::isClientError

Same name in this branch
  1. 9.x drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php \Guzzle\Http\Message\Response::isClientError()
  2. 9.x drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php \Symfony\Component\HttpFoundation\Response::isClientError()

Checks if HTTP Status code is a Client Error (4xx)

Return value

bool

1 call to Response::isClientError()
Response::isError in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php
Checks if HTTP Status code is Server OR Client Error (4xx or 5xx)

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 726

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function isClientError() {
  return $this->statusCode >= 400 && $this->statusCode < 500;
}