Adds code to properly handle a NET::HTTPNotFound error in the response
received back from the Hanlon server (will throw an error indicating
that an error occurred rather than trying to handle the HTML that comes
back from the server as if it were JSON)