Added post logging as well as better HTTPError handling.