I am just getting started with REST web services on Rails. I understand
that REST is an architectural style. However, I was wondering if there
is a commonly used format for sending back error messages.
For example, to a successful ‘create’ a REST service might respond with
the XML for the newly created model, but what would it send back if the
creation fails, maybe due to invalid data?