- Issue created by @abramm
- Merge request !1Issue #3535756: Incorrect response status code handling β (Open) created by abramm
The tombstones_node_view function has the following code:
$build['#attached']['http_header'][] = ['Status', '410 Gone'];
This causes the following error:
TypeError: Symfony\Component\HttpFoundation\Response::setStatusCode(): Argument #1 ($code) must be of type int, string given, called in /var/www/html/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php on line 386 in Symfony\Component\HttpFoundation\Response->setStatusCode() (line 498 of /var/www/html/vendor/symfony/http-foundation/Response.php).
The response code should be just '410', not '410 Gone'.
Open the Tombstone node page, and observe the behavior.
This is likely a change in Symfony Foundation that's enforcing the type check.
Replace the '410 Gone' with just 410.
Apply the fix.
None.
None.
None.
Active
1.0
Code