Add HTTP status code for $databaseConfig error (fixes #3392)