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…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.