Fixed #23977 -- Added setdefault method to HttpResponse

Ticket #23977. Created set_default method for more convenient default headers setting in HttpResponse.
Remove spaces (also in the test):

```py
"""Sets a default [...]"""
```