title: Why won't the Spotify response allow me to go past when an error is received?
body: <p>I'm simply trying to look up a user and if the user exists, sweet, if not, I want to state so...</p>
  
  <pre><code># Install if you haven't already
  require 'twilio-ruby'
  require 'rspotify'
  
  # Twilio Security Access
  account_sid = 'enter_your_sid'
  auth_token = 'enter_your_auth_token'
  
  # Spotify User Lookup
  def user_lookup(user_search)
      spotify_user = RSpotify::User.find(user_search)
  end
  
  # Crafted text message using Twilio
  def text(account_sid, auth_token, message)
      client = Twilio::REST::Client.new account_sid, auth_token
  
      client.messages.create(
          from: '+twilio_number', # I guess you can use my number for testing
          to: '+personal_number', # Feel free to enter your number to get the messages
          body: message
      )
  end
  
  # Ask who you should lookup on Spotify
  puts "Who would you like to look up? "
  user_input_1 = gets.chomp
  
  # Make sure the user exists
  if user_lookup(user_input_1).id != user_input_1 # Test with "zxz122"
      msg = "Could not find that Spotify user!"
      text(account_sid, auth_token, msg)
      puts "Spotify user details send failure!"
  else
      user_exist = user_lookup(user_input_1)
      user_profile_url = "https://open.spotify.com/user/#{user_input_1}"
      msg = "Check out #{user_input_1} on Spotify: #{user_profile_url}"
      text(account_sid, auth_token, msg)
      puts "Spotify user details have been sent!"
  end
  </code></pre>
  
  <p>The response I keep getting is...</p>
  
  <pre><code>`return!': 404 Resource Not Found (RestClient::ResourceNotFound)
  </code></pre>
  
  <p>So why is it not hitting my if statement and triggering "Could not find that Spotify user!"??</p>