[TYPO3-core] Sending correct headers on errors

Andreas Otto andreas.otto at dkd.de
Wed Jun 13 10:50:39 CEST 2007


Hi,

in some situations TYPO3 generates nice little error pages. Most of these
error pages are served with a HTTP status header 200 which is IMHO wrong.

If e. g. TYPO3 has a problem to connect to the database the error page might
display "The current username, password or host was not accepted when the
connection to the database was attempted to be established!".

In addition to this error message an entry should be generated in the syslog
and an HTTP status header 503 should be sent, to indicate that the service
is temporarily not available.

As far as I have found the relevant error messages are created in
class.tslib_fe.php and can easily be found by looking
for "$this->printError(".

If you think it makes sense to adjust the current behaviour of TYPO3 I will
go ahead and create a patch.


Cheers,
Andreas




More information about the TYPO3-team-core mailing list