You are here

public function Response::isInvalid in Zircon Profile 8.0

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

Is response invalid?

Return value

bool

1 call to Response::isInvalid()
Response::setStatusCode in vendor/symfony/http-foundation/Response.php
Sets the response status code.

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isInvalid() {
  return $this->statusCode < 100 || $this->statusCode >= 600;
}