How can I parse a response from an endpoint that returns a pdf (Content-Type: application/pdf) and download it to the device? What would be the steps to follow?