title: Jmeter Retry Request if failed or ResponseCode not equal to 200
body: <p>I have a CSV File with hundreds of records which I am using in the HTTP Sampler with Multiple Threads now sometime or multiple threads returns an error which I am OK but I want to retry in case we don't have ResponseCode 200 which I am extracting but not sure how to retry just that Request only and also I want to limit the tries to 5</p>
  
  <p>I have tried using the while controller with Counter but somehow not able to get this right. Please help.</p>
  
  <p>This is what I have tried
  <a href="https://i.stack.imgur.com/AQex5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AQex5.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/pK6lN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pK6lN.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/YussT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YussT.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/eeifN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eeifN.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/QiOpn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QiOpn.png" alt="enter image description here"></a></p>