emberjs/data — pull request #476 by pivotal-medici (2012-11-14 20:54:27+00:00)
Title: Handle some create and update errors in the REST adapter.

* 422 Unprocessable Entity

Transitions the record to the invalid state. Assumes
the server has responded with `{errors: {...}}` and
sets them on the record.

* All other status codes

Transitions the record to the error state.

This is limited to only single, non-bulk creates/updates.