public function Response::isSuccessful

Same name in this branch

Is response successful?

@api

Return value

Boolean

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

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 1072

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

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