public function Response::isError

Checks if HTTP Status code is Server OR Client Error (4xx or 5xx)

Return value

boolean

File

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

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function isError() {
  return $this
    ->isClientError() || $this
    ->isServerError();
}