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

Breadcrumb

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

function WithHttpStatus::__construct

Parameters

int $statusCode The HTTP status code to use:

array<string, string> $headers The HTTP headers to add to the response:

File

vendor/symfony/http-kernel/Attribute/WithHttpStatus.php, line 26

Class

WithHttpStatus
Defines the HTTP status code applied to an exception.

Namespace

Symfony\Component\HttpKernel\Attribute

Code

public function __construct(int $statusCode, array $headers = []) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal