Fixed #23977 -- Added setdefault method to HttpResponse