2
Completed

Improved error handling options for HTTP Request

The HTTP Request action has an option "stop in case of error".  I like that HTTP Request has a way to change behavior based on whether the the HTTP Request succeeded or failed but I almost always need more control then that.  I would love one or both of the following additions:

  1. Ability to switch to a different task in case of error and stop this one.  It would also need to pass in the HTTP response variables so they could be used in that task
  2. An easier way to determine to conditionally call different steps for success or failure in the steps after an HTTP Request action.  Perhaps something as simple as a boolean variable called HTTPRequestSuccess that is set by the action?

This isn't a huge deal, its not like its impossible to write a conditional like "%HTTPResponseCode !set OR %HTTPResponseCode > 399". It just would be nice if error handling was a bit easier to do then retyping the same conditional a lot

1 reply

  1. You can use the Perform Task and Stop actions to do that :)
  2. You can check if %errmsg is set after the action to check if there was an error

Hope this helps!