diff --git a/core/modules/media/src/Controller/OEmbedIframeController.php b/core/modules/media/src/Controller/OEmbedIframeController.php index 80e18ea396..6aea64ff0a 100644 --- a/core/modules/media/src/Controller/OEmbedIframeController.php +++ b/core/modules/media/src/Controller/OEmbedIframeController.php @@ -133,7 +133,7 @@ public function render(Request $request) { // Return a response instead of a render array so that the frame content // will not have all the blocks and page elements normally rendered by // Drupal. - $response = new HtmlResponse('', 200, [ + $response = new HtmlResponse('', HtmlResponse::HTTP_OK, [ 'Content-Type' => 'text/html; charset=UTF-8', ]); $response->addCacheableDependency(Url::createFromRequest($request));