lib/intercom/request.rb in intercom-3.9.3 vs lib/intercom/request.rb in intercom-3.9.4

- old
+ new

@@ -166,9 +166,11 @@ raise Intercom::ServerError.new('Server Error') elsif code == 502 raise Intercom::BadGatewayError.new('Bad Gateway Error') elsif code == 503 raise Intercom::ServiceUnavailableError.new('Service Unavailable') + elsif code == 504 + raise Intercom::GatewayTimeoutError.new('Gateway Timeout') end end private def raise_application_errors_on_failure(error_list_details, http_code) # Currently, we don't support multiple errors