return HTTP error on bad response
fixes #19, response might be nil, in case of error.