Return a 200 status code for maintenance page

Created on 2 September 2025, about 1 month ago

Problem/Motivation

Currently drupals maintenance page returns a status code in the 500 range.
This is causing issues with monitoring services which are often set up to get notified if the server is down to quickly act and resolve the issues to bring the website back online.
Returning a status code in the 500 range results in unnecessary alerts and wrong statistics in the monitoring.

Proposed resolution

Return a status code 200 for maintenance page but make it configurable in the backend in case anyone wants to keep the original status code.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany guido_s Cologne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @guido_s
  • To prevent search engines from indexing the maintenance page instead of the actual site content, it's crucial that we serve it with a 503 Service Unavailable status code. This correctly signals that the site is temporarily offline and instructs crawlers to return later.

Production build 0.71.5 2024