Rails for Beginners Part 14: Handling Sign Up Errors Discussion
For those who are using Rails 7: Rails 7 has Hotwire enabled by default, and it will validate the response status code. For failed validation, the status code should be 422 (Unprocesssable entity)...
Michael replied