Issue #85 : strict checking on http response code seems too strict on some environments

Unintentionally duplicated #85 when creating the PR.