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

Breadcrumb

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

function Response::isNotFound

Is the response a not found error?

@final

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

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