improve HttpResponse class