public function Response::isServerError

Same name in this branch

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

Return value

bool

1 call to Response::isServerError()

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;
}