[Fix] fixed reading of per-environment settings to avoid xpath issues
[Fix] do a more generic http status check to validate success

Jira api returns 201, but others might just return 200; so just check
first digit (2)