lib/intercom/request.rb in intercom-3.8.0 vs lib/intercom/request.rb in intercom-3.8.1
- old
+ new
@@ -169,10 +169,10 @@
raise Intercom::TokenUnauthorizedError.new(error_details['message'], error_context)
when "bad_request", "missing_parameter", 'parameter_invalid', 'parameter_not_found'
raise Intercom::BadRequestError.new(error_details['message'], error_context)
when "not_restorable"
raise Intercom::BlockedUserError.new(error_details['message'], error_context)
- when "not_found"
+ when "not_found", "company_not_found"
raise Intercom::ResourceNotFound.new(error_details['message'], error_context)
when "admin_not_found"
raise Intercom::AdminNotFound.new(error_details['message'], error_context)
when "rate_limit_exceeded"
raise Intercom::RateLimitExceeded.new(error_details['message'], error_context)