You are here

public function Response::isClientError in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::isClientError()

Is there a client error?

Return value

bool

File

vendor/symfony/http-foundation/Response.php, line 1068

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

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