Fixed REST client failing on POST and 201 status code.
Merge pull request #806 from yglukhov/rest-status-code-fix

Fixed REST client failing on POST and 201 status code.