#102204Wrong HTTP response status code after form submit
Description
When submitting a form (package: typo3/cms-form) with an invalid email address, e.g. a domain that doesn’t exist, we get the error
> 503
> Expected response code “250/251/252” but got code “550”, with message “550-The mail server could not deliver mail to test@invalidhost.abc. The 550-account or domain may not exist, they may be blacklisted, or missing the 550 proper dns entries.”.
The message on the screen states a 503 error. However, the actual response is a 500 error.
Reviews 2
Related issues 1
Files 1
History 611
-
Patrick Crausaz commented <span data-processor="relativetime" data-value="2023-10-21T06:36:21+00:00" > 10/21/23, 06:36 </span>
I wasn’t referring to the Mailserver error code, only the HTTP Status code.
I tested with debug and production mode.
In both debug mode and production mode, the error is thrown with code 500, but display code 503 (As you can see in the attached screenshot) -
Chris Müller changed category <span data-processor="relativetime" data-value="2023-10-22T07:04:24+00:00" > 10/22/23, 07:04 </span>
-
Josua Vogel changed Related to #109168 <span data-processor="relativetime" data-value="2026-03-05T18:57:22+00:00" > 03/05/26, 18:57 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 93092 status
NewUnder Review <span data-processor="relativetime" data-value="2026-03-05T19:01:15+00:00" > 03/05/26, 19:01 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93092 <span data-processor="relativetime" data-value="2026-03-16T07:12:36+00:00" > 03/16/26, 07:12 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 93092 <span data-processor="relativetime" data-value="2026-05-22T11:59:19+00:00" > 05/22/26, 11:59 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 93092 <span data-processor="relativetime" data-value="2026-05-26T05:30:18+00:00" > 05/26/26, 05:30 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 94194 <span data-processor="relativetime" data-value="2026-05-28T20:38:29+00:00" > 05/28/26, 20:38 </span>
-
Josua Vogel commented and changed status
Under ReviewResolved done0 %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.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-08-11T08:46:37+00:00" > 08/11/26, 08:46 </span>
503 is a HTTP Status Code. The 550 error code in the error message is a Mailserver error code,
which is a completly other story. And not a valid HTTP Status code.
503 means, that an aunhandled application error is thrown.
What are your settings – are you in debug mode and what are your error/exception level configurations ?
If you switch to more production like, is there than another status code displayed or the normal form ?
Getting the smtp error message looks like you are more in a debug mode context.