add BadGatewayException
bump version to 0.2.7