Mock Server Responses Using Combine and Display a Dog Photo For Any HTTP Status Code
Daily Coding Tip 245
There is a service called http.dog that will provide a picture of a dog that describes any valid HTTP status code.
An obvious example of this is a 404 error, where an image of a dog digging a whole is returned. In order to demonstrate this I wanted to display the correct dog based on the server response.
But how do I co…


