You are here

public function Response::isSuccessful in Zircon Profile 8

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

Is response successful?

Return value

bool

1 call to Response::isSuccessful()
BinaryFileResponse::sendContent in vendor/symfony/http-foundation/BinaryFileResponse.php
Sends the file.

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isSuccessful() {
  return $this->statusCode >= 200 && $this->statusCode < 300;
}