In the previous commit, we introduced a new type for detecting when the server sent back an HTTP 422. In this commit, let's use that and detect when we get a situation in which: res.StatusCode == 422 And create+return the new error appropriately.