Handling RestClient::RequestURITooLong exception in resource.rb