Adding InvalidGatewayException