title: Logic App - HTTP Action - Loop until 200
body: <p>I have a logic app with an http action. 
  As the reply policy allows at most 4 retries I put the activity inside a do-until loop (with max count and timeout) using the http status code as escape variable (until it is 200).</p>
  
  <p>This image should make this more clear
  <a href="https://i.stack.imgur.com/Wo9kf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wo9kf.png" alt="enter image description here"></a></p>
  
  <p>At runtime I get this error</p>
  
  <blockquote>
    <p>[EDIT]<strong>InvalidTemplate. Unable to process template language expressions for action 'HTTPAction'</strong>[EDIT]: Unable to process template language expressions for action 'HttpAction' [..] The template language expression 'equals(outputs('HttpAction')['statusCode'], 200)' cannot be evaluated because property 'statusCode' cannot be selected.</p>
  </blockquote>
  
  <p>Any hints?</p>
  
  <p>Thanks, Alessandro</p>
  
  <p>[EDIT]The http request just works (tried with fiddler), in the workflow i suppose it just doesn't get executed due to the template error (why does it fail at runtime and not in edit mode?)[EDIT]</p>