sweh / ajja

JavaScript library for simple creation of forms and display of collections
MIT License
2 stars 0 forks source link

Clean up protocol for saving fields #5

Open sweh opened 10 years ago

sweh commented 10 years ago

Originally reported by: Thomas Lotze (Bitbucket: tlotze, GitHub: tlotze)


We should use HTTP response code 422 to signal validation errors when saving fields. This obsoletes the need for a status value inside the JSON response, and the need for any response body for a successful response.