title: The script is not saving my bad_responses correctly
body: <p>I have brainstormed a lot of possibilities and created a bulk API call so I can import some products into my store. It works fine, products are imported correctly, however, I have trouble saving bad responses in a csv file.</p>
  <p>Maybe I am doing something wrong or my indentation is not correct. Please, point me in a right direction or provide any advice for the future for not making similar mistakes.</p>
  <p>This is the code:</p>
  <pre><code>df = pd.read_csv('edited_csv.csv')
  bad_responses_list = []
  for i in range(len(df)):
      endpoint = f&quot;{base_url}/products&quot;
      data = {
              &quot;product_id&quot;: int(df['product_id'][i]),
              &quot;title&quot;: df['title'][i],
              &quot;discount_type&quot;: &quot;percentage&quot;,
              &quot;discount&quot;: 5, 
          }
          }
      response = requests.post(endpoint, json.dumps(data), headers=headers)
      status_code = response.status_code
      if status_code != 200 or status_code != 201:
          bad_responses_list.append([df['product_id'][i], response.status_code])
  
  df_bad_responses = pd.DataFrame(bad_responses_list, columns=['product_id', 'status_code'])
  df_bad_responses.to_csv('products_with_bad_responses.csv')
  </code></pre>
  <p>Now, when I run this it creates csv with good and bad responses, something like this:</p>
  <pre><code>product_id, status_code
  7262783, 201
  9458389, 201
  0493788, 422
  7273628, 422
  7263728, 201
  </code></pre>
  <p>Thank you in advance!</p>