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

Breadcrumb

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

class WithHttpStatus

Defines the HTTP status code applied to an exception.

@author Dejan Angelov <angelovdejan@protonmail.com>

Hierarchy

  • class \Symfony\Component\HttpKernel\Attribute\WithHttpStatus

Expanded class hierarchy of WithHttpStatus

1 file declares its use of WithHttpStatus
ErrorListener.php in vendor/symfony/http-kernel/EventListener/ErrorListener.php

File

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

Namespace

Symfony\Component\HttpKernel\Attribute
View source
class WithHttpStatus {
    
    /**
     * @param int                   $statusCode The HTTP status code to use
     * @param array<string, string> $headers    The HTTP headers to add to the response
     */
    public function __construct(int $statusCode, array $headers = []) {
    }

}

Members

Title Sort descending Modifiers Object type Summary
WithHttpStatus::__construct public function
RSS feed
Powered by Drupal