Added class for HttpResponse, adapted everything else to it