This PR adds a convenient helper to check for unprocessableEntity response status.
I bet we don't want to add a helper for each status code but this is motivated by the fact that Rails now returns 422 status code by default for form submission with error https://github.com/rails/rails/pull/41026
So, we can legitimately expect doing this kind of check more often.
This PR adds a convenient helper to check for
unprocessableEntity
response status.I bet we don't want to add a helper for each status code but this is motivated by the fact that Rails now returns
422
status code by default for form submission with error https://github.com/rails/rails/pull/41026So, we can legitimately expect doing this kind of check more often.