Treat HTTP error 500 the same way as 503 (fixes issue #209)