I'm setting up a REST interface and following the example as shown on the site: http://editor.datatables.net/examples/advanced/REST.html To me, the right response for field validation errors is a 400 error: 400 Bad Request "The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing)." But when Datatables sees that status code, it shows 'A system error has occurred' at the bottom of the Editor dialog. I'm including the fieldErrors within my JSON, etc, but the sticking point is the status code. If I use a 200 series status code, which DataTables will accept, it won't be a proper REST API.
Suggestions?
Peter