public function Response::isServerError

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

Checks if HTTP Status code is Server Error (5xx)

Return value

bool

1 call to Response::isServerError()
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 766

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

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