Properly handling HTTP response content