Workflow branch based on Webhook response

I have a worflow that triggers a webhook. This issue is that it is basically fire and forget. However I would like to be able to branch my workflow based on the result or response of the webhook. If the webhook results with a status code of 200 I want to do one thing, but if the status code is received is 500 I would like handle it by doing something different. Alternatively if the response contains some JSON I would like to be able to parse and branch based on the result value.

Is there any way to do either of these?

Thanks

@briandj, use ajax and jquery. Hubspot uses sessions but I don’t really think you can tap into a session because you don’t have access to server code.