[FIX] Middleware to Return Bad Gateway without rippled connection.
[TEST] Add test for 502 Bad Gateway middleware.
[TASK] Update error class to RippledConnectionError.
Merge pull request #96 from ripple/bad-gateway-middleware

Bad gateway middleware