I'm looking through an advanced, security related Ruby on Rails tutorial and it's talking about 422 HTTP responses as "the client submitted request was well formed but semantically invalid". I have also seen the latter part rendered as 'semantic errors' or 'semantically erroneous'.
In the example given this was due to Rails checking for an authenticity token, but I significantly feel there is a lot more to the HTTP response.
I would be particularly grateful for a canonical definition from an established community member as to what 'semantically invalid/errors/erroneous' means. What is the general rule that makes a request well formed but not semantically valid?