Bug #102204
openWrong HTTP response status code after form submit
0%
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.
Files
Updated by Stefan Bürk about 1 year ago
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.
Updated by Patrick Crausaz about 1 year ago
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)