adds a net http integration test and fixes an issue with the http error lookup