Http code 500 was never returned as the string comparison was wrong

This quick fix will let the web server return http code 500.