Throw an error if the status code is 300 or higher.
Avoid having an agent properly, using the agent option for http.request().