Wrote first working unit test for httpClient using Nock
Corrected logic for HTTP error handling. Wrote accompanying unit tests