A site I help administer was showing a uncaught exception page.
Additional uncaught exception thrown while handling exception.
PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket /var/run/mysqld/mysqld.sock& (111) in _registry_check_code() (line 3154 of home/jcorneli/beta/includes/bootstrap.inc).
The server returns 200/OK. The .htaccess files contains the following lines.
# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php
Is there a way to make Drupal return the correct HTTP status?