Issue Bug Closed

#109168ProductionExceptionHandler shows "503" on error page regardless of actual HTTP status

Josua Vogel 03/05/26, 18:57 updated 08/11/26, 08:46

Description

The error page rendered by ProductionExceptionHandler always displays
“503”, even though the HTTP response header may be 500, 404, 403 etc.

How to reproduce:
Trigger any unhandled exception in production context, e.g. a generic
RuntimeException. The browser DevTools show HTTP 500, but the error
page displays “503”.

Cause:
echoExceptionWeb() passes a hardcoded 503 to ErrorPageController::errorAction(),
while sendStatusHeaders() correctly derives the status from the exception.

Reviews 2

History 38

  1. Josua Vogel commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-05-28T20:50:08+00:00" > 05/28/26, 20:50 </span>

    Applied in changeset commit:fdc8d31ba3ea34b30e5a0d16229d88d5b323ded8.