You are here

public function Response::isOk in Zircon Profile 8.0

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

Is the response OK?

Return value

bool

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isOk() {
  return 200 === $this->statusCode;
}