Fixes #5061: create generic method to check http status
Fixes #5061: create generic method to check http status
Fixes #5062: add method to post content