Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Response.php

function Response::isOk

Is the response OK?

@final

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isOk() : bool {
    return 200 === $this->statusCode;
}
RSS feed
Powered by Drupal